notatest/server/sql/sqlc.yaml

25 lines
569 B
YAML

version: "2"
sql:
- engine: "postgresql"
queries: "./queries/"
schema: "./migrations/"
gen:
go:
package: "db"
out: "../pkg/db"
sql_package: "pgx/v5"
emit_json_tags: true
overrides:
- db_type: "timestamptz"
go_type:
type: "time.Time"
- db_type: "timestamptz"
nullable: true
go_type:
type: "*time.Time"
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"