-
Notifications
You must be signed in to change notification settings - Fork 0
/
sqlc.yaml
55 lines (49 loc) · 1.19 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
version: "2"
sql:
- engine: "mysql"
queries: "db/query"
schema: "db/migrate"
gen:
go:
package: "sqlc"
out: "app/sqlc"
emit_json_tags: true
emit_interface: true
emit_empty_slices: true
json_tags_case_style: "camel"
overrides:
- db_type: text
nullable: true
go_type:
type: string
pointer: false
- db_type: varchar
nullable: true
go_type:
type: string
pointer: false
- db_type: int
nullable: true
go_type:
type: int
pointer: false
- db_type: int
nullable: false
go_type:
type: int
pointer: false
- db_type: tinyint
nullable: true
go_type:
type: int
pointer: false
- db_type: date
nullable: true
go_type:
type: time.Time
pointer: false
- db_type: datetime
nullable: true
go_type:
type: time.Time
pointer: false