-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
21 lines (21 loc) · 725 Bytes
/
Copy pathsqlc.yaml
File metadata and controls
21 lines (21 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: "2"
sql:
- engine: "postgresql"
# Schema is the goose migration set. sqlc understands the goose Up/Down
# annotations and derives the catalog from the Up statements, so the
# migrations remain the single source of truth for the schema.
schema: "internal/pg/migrations"
queries: "internal/pg/queries"
gen:
go:
package: "pgstore"
out: "internal/pg/pgstore"
sql_package: "pgx/v5"
emit_pointers_for_null_types: true
emit_empty_slices: true
emit_json_tags: false
overrides:
# jsonb columns are marshalled/unmarshalled by the application layer.
- db_type: "jsonb"
go_type:
type: "[]byte"