-
Notifications
You must be signed in to change notification settings - Fork 0
/
sqlc.yaml
105 lines (90 loc) · 1.9 KB
/
sqlc.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "1"
packages:
- name: "dbmodel"
path: "internal/dbmodel"
schema: "structure.sql"
queries: "internal/dbmodel/query.sql"
engine: "postgresql"
sql_package: "pgx/v4"
json_tags_case_style: "snake"
emit_json_tags: true
overrides:
- column: "datasets.status"
go_type:
type: "datasetStatus"
# - column: "bloggers.status"
# go_type:
# type: "bloggerStatus"
# import: "github.com/inst-api/parser/internal/headers"
#
- column: "bots.proxy"
go_type:
type: "Proxy"
- db_type: "pg_catalog.int2"
nullable: true
go_type:
type: "int16"
pointer: true
- db_type: "pg_catalog.int4"
nullable: true
go_type:
type: "int32"
pointer: true
- db_type: "pg_catalog.int8"
nullable: true
go_type:
type: "int64"
pointer: true
- db_type: "text"
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "pg_catalog.varchar"
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "date"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "pg_catalog.timestamp"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "pg_catalog.timestamptz"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "public.citext"
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "pg_catalog.bool"
nullable: true
go_type:
type: "bool"
pointer: true
- db_type: "jsonb"
go_type: "string"
- db_type: "pg_catalog.integer"
go_type: "int"
- db_type: "jsonb"
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "uuid"
nullable: true
go_type:
import: "github.com/google/uuid"
type: "UUID"
pointer: true