-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
27 lines (27 loc) · 754 Bytes
/
Copy pathsqlc.yaml
File metadata and controls
27 lines (27 loc) · 754 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
version: "2"
sql:
- schema: "pkg/gateway/postgres/migrations"
queries: "pkg/gateway/postgres/queries"
engine: "postgresql"
gen:
go:
package: "sqlc"
out: "pkg/gateway/postgres/sqlc"
sql_package: "pgx/v5"
emit_exported_queries: true
overrides:
# Type mappings
- db_type: "uuid"
go_type:
import: "github.com/gofrs/uuid/v5"
package: "uuid"
type: "UUID"
- db_type: "timestamptz"
go_type: "time.Time"
- db_type: "date"
go_type: "time.Time"
- db_type: "timestamptz"
nullable: true
go_type:
type: "time.Time"
pointer: true