-
-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathsqlc.yaml
More file actions
68 lines (68 loc) · 2.24 KB
/
Copy pathsqlc.yaml
File metadata and controls
68 lines (68 loc) · 2.24 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
version: "2"
sql:
- engine: "postgresql"
schema: "internal/database/migrations/postgres"
queries: "internal/queries/sql"
gen:
go:
package: "queries"
out: "internal/queries"
sql_package: "pgx/v5"
emit_json_tags: true
emit_db_tags: true
emit_interface: true
emit_prepared_queries: false
emit_exact_table_names: false
emit_empty_slices: true
overrides:
- db_type: "uuid"
go_type: "github.com/gofrs/uuid.UUID"
- db_type: "uuid"
go_type: "github.com/gofrs/uuid.NullUUID"
nullable: true
- db_type: "text"
go_type: "string"
- db_type: "pg_catalog.varchar"
go_type: "string"
- db_type: "text"
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "pg_catalog.varchar"
nullable: true
go_type:
type: "string"
pointer: true
- db_type: "pg_catalog.int4"
go_type: "int"
- db_type: "serial"
go_type: "int"
- db_type: "serial"
go_type: "int"
- db_type: "pg_catalog.timestamp"
go_type: "time.Time"
- db_type: "pg_catalog.timestamp"
nullable: true
go_type:
type: "time.Time"
pointer: true
- db_type: "pg_catalog.int4"
nullable: true
go_type:
type: "int"
pointer: true
- db_type: "jsonb"
go_type: "encoding/json.RawMessage"
- column: "notifications.data"
go_type: "*encoding/json.RawMessage"
- column: "performers.gender"
go_type: "*github.com/stashapp/stash-box/internal/models.GenderEnum"
- column: "performers.ethnicity"
go_type: "*github.com/stashapp/stash-box/internal/models.EthnicityEnum"
- column: "performers.eye_color"
go_type: "*github.com/stashapp/stash-box/internal/models.EyeColorEnum"
- column: "performers.hair_color"
go_type: "*github.com/stashapp/stash-box/internal/models.HairColorEnum"
- column: "performers.breast_type"
go_type: "*github.com/stashapp/stash-box/internal/models.BreastTypeEnum"