-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsqlc.yaml
More file actions
56 lines (56 loc) · 1.61 KB
/
Copy pathsqlc.yaml
File metadata and controls
56 lines (56 loc) · 1.61 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
version: "2"
sql:
- engine: "mysql"
queries: "store/queries.sql"
schema: "store/schema/current.sql"
gen:
go:
package: "imsdb"
out: "store/imsdb"
emit_enum_valid_method: true
emit_all_enum_values: true
emit_interface: true
emit_methods_with_db_argument: true
- engine: "mysql"
queries: "directory/queries.sql"
schema: "directory/schema/current.sql"
gen:
go:
emit_interface: true
emit_methods_with_db_argument: true
package: "clubhousedb"
out: "directory/clubhousedb"
overrides:
# The column types in Clubhouse are inconsistent with one
# another, e.g. person.id is int64 but person_team.person_id
# is int32, even though those are the same IDs. For our purposes,
# it's simpler to just assume all of these are int64s, so that
# we can avoid lots of casting.
- column: "person.id"
go_type:
type: "int64"
pointer: false
- column: "person_position.person_id"
go_type:
type: "int64"
pointer: false
- column: "person_team.person_id"
go_type:
type: "int64"
pointer: false
- column: "position.id"
go_type:
type: "int64"
pointer: false
- column: "person_position.position_id"
go_type:
type: "int64"
pointer: false
- column: "team.id"
go_type:
type: "int64"
pointer: false
- column: "person_team.team_id"
go_type:
type: "int64"
pointer: false