nyanimedb/sql/sqlc.yaml
Iron_Felix d0c3547ef6
All checks were successful
Build and Deploy Go App / build (push) Successful in 5m32s
Build and Deploy Go App / deploy (push) Successful in 25s
fix
2025-11-22 08:47:01 +03:00

40 lines
No EOL
1.1 KiB
YAML

version: "2"
sql:
- engine: "postgresql"
queries:
- "../modules/backend/queries.sql"
schema: "migrations"
gen:
go:
package: "sqlc"
out: "."
sql_package: "pgx/v5"
sql_driver: "github.com/jackc/pgx/v5"
emit_json_tags: true
emit_pointers_for_null_types: true
emit_empty_slices: true #slices returned by :many queries will be empty instead of nil
overrides:
- db_type: "jsonb"
go_type: "encoding/json.RawMessage"
- db_type: "uuid"
nullable: false
go_type:
import: "github.com/gofrs/uuid"
package: "gofrsuuid"
type: UUID
pointer: true
- db_type: "timestamptz"
nullable: false
go_type:
import: "time"
type: "Time"
- db_type: "title_status_t"
nullable: true
go_type:
pointer: true
type: "TitleStatusT"
- db_type: "release_season_t"
nullable: true
go_type:
pointer: true
type: "ReleaseSeasonT"