stillbox/sql/sqlc.yaml

30 lines
839 B
YAML
Raw Normal View History

2024-07-14 17:39:03 -04:00
version: "2"
sql:
- engine: "postgresql"
2024-07-15 19:03:48 -04:00
queries: "postgres/queries"
2024-07-14 17:39:03 -04:00
schema: "postgres/migrations"
gen:
go:
package: "database"
out: "../pkg/gordio/database"
sql_package: "pgx/v5"
2024-07-22 08:39:33 -04:00
query_parameter_limit: 3
2024-07-25 09:37:27 -04:00
emit_json_tags: true
2024-07-27 19:25:16 -04:00
emit_interface: true
2024-07-25 09:37:27 -04:00
emit_pointers_for_null_types: true
2024-07-24 22:42:30 -04:00
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
2024-07-25 09:37:27 -04:00
- db_type: "pg_catalog.int4"
go_type: "int"
- db_type: "pg_catalog.serial4"
go_type: "int"
2024-07-27 19:25:16 -04:00
- db_type: "integer"
2024-07-26 09:29:58 -04:00
go_type: "int"
- db_type: "pg_catalog.timestamp"
go_type: "time.Time"
2024-07-27 19:25:16 -04:00
- db_type: "pg_catalog.text"
go_type: "string"