feat: sqlc configuration

This commit is contained in:
2025-05-18 11:48:30 +02:00
parent 4a62dee4c2
commit eec9e5b4c2

21
sqlc.yaml Normal file
View File

@ -0,0 +1,21 @@
version: "2"
sql:
- engine: "postgresql"
schema: "./migrations"
queries: "./queries"
gen:
go:
package: "repository"
sql_package: "pgx/v5"
emit_json_tags: true
out: "internal/repository"
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
- db_type: "timestamptz"
go_type:
import: "time"
type: "Time"