-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlc.yaml
49 lines (49 loc) · 1.38 KB
/
sqlc.yaml
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
version: "2"
sql:
- schema: "./db/schemas/people.sql"
queries: "./db/queries/people.sql"
engine: "sqlite"
gen:
go:
package: "contacts"
out: "contacts"
emit_exact_table_names: true
emit_db_tags: true
emit_interface: true
emit_json_tags: true
json_tags_case_style: "snake"
output_models_file_name: "people"
#- schema: "./db/schemas/organizations.sql"
# queries: "./db/queries/organizations.sql"
# engine: "sqlite"
# gen:
# go:
# package: "contacts"
# out: "contacts"
# emit_exact_table_names: true
# emit_db_tags: true
# emit_interface: true
# emit_json_tags: true
# json_tags_case_style: "snake"
# output_models_file_name: "organizations"
#overrides:
# go:
# overrides:
# - db_type: "EVENT"
# nullable: true
# go_type:
# import: "github.com/TheSnakeWitcher/mypeople/contacts/base"
# package: "base"
# type: "Event"
# - db_type: "LOCATION"
# nullable: true
# go_type:
# import: "github.com/TheSnakeWitcher/mypeople/contacts/base"
# package: "base"
# type: "Location"
# - db_type: "PRODUCT"
# nullable: true
# go_type:
# import: "github.com/TheSnakeWitcher/mypeople/contacts/base"
# package: "base"
# type: "Product"