nyanimedb/sql/sqlc.yaml
Iron_Felix a25a912ead
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m35s
Build and Deploy Go App / deploy (push) Successful in 25s
feat: Update UserTitle implemented
2025-11-27 08:16:12 +03:00

50 lines
No EOL
1.4 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: "usertitle_status_t"
nullable: true
go_type:
type: "UsertitleStatusT"
pointer: true
- db_type: "storage_type_t"
nullable: true
go_type:
type: "StorageTypeT"
pointer: true
- 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"