sqlc.yaml
Rama main · réplica de lectura del repositorio original.
version: "2"
sql:
- engine: postgresql
schema: internal/db/migrations
queries: internal/db/queries
gen:
go:
package: db
out: internal/db
sql_package: pgx/v5
emit_pointers_for_null_types: true
overrides:
- db_type: uuid
go_type: github.com/google/uuid.UUID
- db_type: timestamptz
go_type: time.Time
- db_type: timestamptz
nullable: true
go_type:
type: time.Time
pointer: true
- db_type: pg_catalog.numeric
go_type: float64
- db_type: uuid
nullable: true
go_type:
import: github.com/google/uuid
type: UUID
pointer: true