-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
108 lines (108 loc) · 3.09 KB
/
Copy pathsqlc.yaml
File metadata and controls
108 lines (108 loc) · 3.09 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
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
version: "2"
sql:
- engine: "postgresql"
queries: "query.sql"
schema: "db/migrations"
gen:
go:
package: "database"
out: "internal/database"
sql_package: "pgx/v5"
emit_interface: true
emit_json_tags: true
overrides:
- db_type: "uuid"
go_type:
type: "UUID"
import: "github.com/google/uuid"
- db_type: "uuid"
nullable: true
go_type:
type: "UUID"
import: "github.com/google/uuid"
pointer: true
- db_type: "numeric"
go_type:
type: "Decimal"
import: "github.com/shopspring/decimal"
- db_type: "numeric"
nullable: true
go_type:
type: "Decimal"
import: "github.com/shopspring/decimal"
pointer: true
- db_type: "pg_catalog.numeric"
go_type:
type: "Decimal"
import: "github.com/shopspring/decimal"
- db_type: "pg_catalog.numeric"
nullable: true
go_type:
type: "Decimal"
import: "github.com/shopspring/decimal"
pointer: true
- db_type: "decimal"
go_type:
type: "Decimal"
import: "github.com/shopspring/decimal"
- db_type: "decimal"
nullable: true
go_type:
type: "Decimal"
import: "github.com/shopspring/decimal"
pointer: true
- db_type: "pg_catalog.timestamp"
go_type:
type: "Time"
import: "time"
- db_type: "pg_catalog.timestamptz"
go_type:
type: "Time"
import: "time"
- db_type: "pg_catalog.timestamptz"
nullable: true
go_type:
type: "Time"
import: "time"
pointer: true
- db_type: "timestamptz"
go_type:
type: "Time"
import: "time"
- db_type: "timestamptz"
nullable: true
go_type:
type: "Time"
import: "time"
pointer: true
- db_type: "date"
go_type:
type: "Time"
import: "time"
- db_type: "pg_catalog.time"
go_type:
type: "Time"
import: "time"
- db_type: "pg_catalog.time"
nullable: true
go_type:
type: "Time"
import: "time"
pointer: true
- db_type: "text"
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "pg_catalog.int4"
nullable: true
go_type:
type: "int"
pointer: true
- db_type: "pg_catalog.int4"
go_type: "int"
- db_type: "pg_catalog.bool"
nullable: true
go_type:
type: "bool"
pointer: true