-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlc.yml
62 lines (62 loc) · 1.98 KB
/
sqlc.yml
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
version: "2"
sql:
- name: "user"
engine: "postgresql"
schema: "internal/services/users/infrastructure/sql/schema.sql"
queries: "internal/services/users/infrastructure/sql/query.sql"
gen:
go:
package: "internal"
out: "internal/services/users/infrastructure/internal"
sql_package: "database/sql"
emit_json_tags: true
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
- name: "refreshToken"
engine: "postgresql"
schema: "internal/services/auth/infrastructure/sql/schema.sql"
queries: "internal/services/auth/infrastructure/sql/query.sql"
gen:
go:
package: "internal"
out: "internal/services/auth/infrastructure/internal"
sql_package: "database/sql"
emit_json_tags: true
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
- name: "hospital"
engine: "postgresql"
schema: "internal/services/hospitals/infrastructure/sql/schema.sql"
queries: "internal/services/hospitals/infrastructure/sql/query.sql"
gen:
go:
package: "internal"
out: "internal/services/hospitals/infrastructure/internal"
sql_package: "database/sql"
emit_json_tags: true
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
- name: "review"
engine: "postgresql"
schema: "internal/services/reviews/infrastructure/sql/schema.sql"
queries: "internal/services/reviews/infrastructure/sql/query.sql"
gen:
go:
package: "internal"
out: "internal/services/reviews/infrastructure/internal"
sql_package: "database/sql"
emit_json_tags: true
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"