This repository was archived by the owner on Oct 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsqlc.yaml
More file actions
57 lines (57 loc) · 1.63 KB
/
sqlc.yaml
File metadata and controls
57 lines (57 loc) · 1.63 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
version: "2"
sql:
- engine: postgresql
queries: "internal/storage/postgres/queries"
schema: "internal/storage/postgres/migrations"
gen:
go:
package: "sqlc"
out: "internal/storage/postgres/_sqlc"
sql_package: "pgx/v5"
emit_interface: true
emit_pointers_for_null_types: true
emit_result_struct_pointers: true
emit_params_struct_pointers: true
emit_empty_slices: true
overrides:
- db_type: "pg_catalog.timestamptz"
go_type:
import: "time"
type: "Time"
- db_type: "pg_catalog.timestamptz"
nullable: true
go_type:
import: "time"
pointer: true
type: "Time"
- db_type: "pg_catalog.timestamp"
go_type:
import: "time"
type: "Time"
- db_type: "pg_catalog.timestamp"
nullable: true
go_type:
import: "time"
pointer: true
type: "Time"
- db_type: "date"
go_type:
import: "time"
type: "Time"
- db_type: "date"
nullable: true
go_type:
import: "time"
pointer: true
type: "Time"
- db_type: "geometry"
go_type:
import: "github.com/twpayne/go-geos"
package: "geos"
pointer: true
type: "Geom"
nullable: true
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"