-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
32 lines (32 loc) · 862 Bytes
/
Copy pathsqlc.yaml
File metadata and controls
32 lines (32 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "2"
sql:
- engine: "postgresql"
schema: "internal/db/migrations"
queries: "internal/db/queries"
gen:
go:
package: "gen"
out: "internal/db/gen"
sql_package: "pgx/v5"
emit_json_tags: true
emit_pointers_for_null_types: true
emit_interface: false
emit_exact_table_names: true
overrides:
- db_type: "pg_catalog.timestamp"
go_type: "time.Time"
- db_type: "pg_catalog.timestamp"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "jsonb"
go_type:
type: "byte"
slice: true
- db_type: "jsonb"
nullable: true
go_type:
type: "byte"
slice: true