-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
44 lines (43 loc) · 1.03 KB
/
sqlc.yaml
File metadata and controls
44 lines (43 loc) · 1.03 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
version: "2"
overrides:
go:
overrides:
- db_type: "pg_catalog.timestamp"
engine: "postgresql"
go_type: "time.Time"
- db_type: "pg_catalog.timestamptz"
engine: "postgresql"
go_type: "time.Time"
- db_type: "pg_catalog.timestamptz"
engine: "postgresql"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "pg_catalog.timestamp"
engine: "postgresql"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: jsonb
go_type:
import: "encoding/json"
type: "RawMessage"
- db_type: jsonb
go_type:
import: "encoding/json"
type: "RawMessage"
nullable: true
sql:
- engine: "postgresql"
queries: "sqlc"
schema: "db/migrations"
gen:
go:
package: "sqlc"
sql_package: "pgx/v5"
out: "sqlc"
emit_pointers_for_null_types: true