xtablo-source/deprecated/sqlc.yaml
Arthur Belleville 5d0c201e86
Some checks failed
backend-ci / Backend tests (pull_request) Failing after 53s
backend-ci / Backend tests (push) Failing after 1s
Some work
2026-05-23 17:26:01 +02:00

28 lines
735 B
YAML

version: "2"
sql:
- engine: "postgresql"
schema: "internal/db/schema.sql"
queries: "internal/db/queries.sql"
gen:
go:
package: "sqlc"
out: "internal/db/sqlc"
sql_package: "pgx/v5"
emit_interface: true
emit_db_tags: true
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
- db_type: "pg_catalog.uuid"
nullable: true
go_type:
import: "github.com/google/uuid"
type: "UUID"
pointer: true
- db_type: "pg_catalog.timestamptz"
go_type:
import: "time"
type: "Time"