-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
36 lines (32 loc) · 872 Bytes
/
sqlc.yaml
File metadata and controls
36 lines (32 loc) · 872 Bytes
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
version: "2"
sql:
- schema: "db/migration"
queries: "db/query"
engine: "postgresql"
gen:
go:
package: "db"
out: "db/sqlc"
sql_package: "pgx/v5"
emit_json_tags: true
emit_interface: true
emit_empty_slices: true
overrides:
- db_type: "timestamptz"
go_type: "time.Time"
- db_type: "uuid"
go_type: "github.com/google/uuid.UUID"
- db_type: "date"
go_type: "time.Time"
- db_type: "numeric"
go_type: "float64"
- db_type: "pg_catalog.numeric"
go_type: "float64"
- db_type: "time"
go_type: "time.Time"
- db_type: "pg_catalog.time"
go_type: "time.Time"
- db_type: "pg_catalog.timetz"
go_type: "time.Time"
- db_type: "pg_catalog.timestamp"
go_type: "time.Time"