-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
57 lines (57 loc) · 1.58 KB
/
sqlc.yaml
File metadata and controls
57 lines (57 loc) · 1.58 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/db/queries/"
schema: "internal/db/migrations/"
gen:
go:
package: "db"
out: "internal/db"
sql_package: "pgx/v5"
emit_json_tags: false
emit_pointers_for_null_types: true
emit_empty_slices: true
emit_result_struct_pointers: true
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
- db_type: "uuid"
nullable: true
go_type:
import: "github.com/google/uuid"
type: "UUID"
pointer: true
- db_type: "timestamptz"
go_type:
type: "time.Time"
- db_type: "timestamptz"
nullable: true
go_type:
type: "time.Time"
pointer: true
- db_type: "vector"
go_type:
import: "github.com/pgvector/pgvector-go"
type: "Vector"
- db_type: "vector"
nullable: true
go_type:
import: "github.com/pgvector/pgvector-go"
type: "Vector"
pointer: true
- db_type: "ltree"
go_type:
type: "string"
- db_type: "ltree"
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "float4"
go_type:
type: "float32"
- db_type: "float8"
go_type:
type: "float64"