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