-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlc.yaml
115 lines (114 loc) · 2.32 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
106
107
108
109
110
111
112
113
114
115
version: "1"
packages:
- name: "db"
path: "./internal/repository/db/sqlc"
queries: "./internal/repository/db/query"
schema: "./internal/repository/db/migration"
engine: "postgresql"
sql_package: "pgx/v4"
emit_json_tags: true
emit_prepared_queries: false
emit_interface: true
emit_exact_table_names: false
emit_empty_slices: true
emit_result_struct_pointers: true
overrides:
- db_type: "pg_catalog.int4"
engine: postgresql
nullable: true
go_type:
type: "int"
pointer: true
- db_type: "pg_catalog.int8"
engine: postgresql
nullable: true
go_type:
type: "int"
pointer: true
- db_type: "pg_catalog.float4"
engine: postgresql
nullable: true
go_type:
type: "float32"
pointer: true
- db_type: "pg_catalog.float8"
engine: postgresql
nullable: true
go_type:
type: "float32"
pointer: true
- db_type: "text"
engine: postgresql
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "pg_catalog.varchar"
engine: postgresql
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "pg_catalog.timestamp"
engine: postgresql
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "int"
engine: mysql
nullable: true
go_type:
type: "int"
pointer: true
- db_type: "bigint"
engine: mysql
nullable: true
go_type:
type: "int"
pointer: true
- db_type: "float"
engine: mysql
nullable: true
go_type:
type: "float32"
pointer: true
- db_type: "double"
engine: mysql
nullable: true
go_type:
type: "float32"
pointer: true
- db_type: "longtext"
engine: mysql
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "varchar"
engine: mysql
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "nvarchar"
engine: mysql
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "datetime"
engine: mysql
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "date"
engine: mysql
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true