-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlc.yaml
41 lines (41 loc) · 1.2 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
version: "2"
sql:
- schema: "internal/db/schema/auth_schema.sql"
queries: "internal/db/schema/auth_query.sql"
engine: "mysql"
gen:
go:
package: "auth"
out: "internal/db/auth"
emit_db_tags: true
emit_prepared_queries: true
emit_empty_slices: true
emit_params_struct_pointers: true
emit_json_tags: true
json_tags_case_style: "snake"
- schema: "internal/db/schema/store_schema.sql"
queries: "internal/db/schema/store_query.sql"
engine: "mysql"
gen:
go:
package: "store"
out: "internal/db/store"
emit_db_tags: true
emit_prepared_queries: true
emit_empty_slices: true
emit_params_struct_pointers: true
emit_json_tags: true
json_tags_case_style: "snake"
- schema: "internal/db/schema/user_store_schema.sql"
queries: "internal/db/schema/user_store_query.sql"
engine: "mysql"
gen:
go:
package: "relation"
out: "internal/db/relation"
emit_db_tags: true
emit_prepared_queries: true
emit_empty_slices: true
emit_params_struct_pointers: true
emit_json_tags: true
json_tags_case_style: "snake"