-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlc.yaml
63 lines (63 loc) · 2.07 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "2"
sql:
- schema: "db/migrations"
queries: "db/queries"
engine: "sqlite"
gen:
go:
package: "sqlc"
out: "internal/back/infrastructure/sqlc"
emit_db_tags: true
emit_empty_slices: true
emit_methods_with_db_argument: false
overrides:
- column: "main.*.uuid"
go_type: "github.com/google/uuid.UUID"
- column: "main.*.session_uuid"
go_type: "github.com/google/uuid.UUID"
- column: "main.*.class_uuid"
go_type: "github.com/google/uuid.UUID"
- column: "main.*.class_name"
go_type: "string"
- column: "main.session_view.user_name"
go_type: "string"
- column: "main.*.remaining_sec"
go_type: "int"
- column: "main.*.user_id"
go_type: "string"
- column: "main.*.user_picture"
go_type: "string"
- column: "main.quiz_session_view.user_name"
go_type: "string"
- column: "main.quiz_session_view.remaining_sec"
go_type: "int"
- column: "main.*.checked_answers"
go_type: "int"
- column: "main.*.results"
go_type: "int"
- column: "main.*.version"
go_type: "int"
- column: "main.*.duration"
go_type: "int"
- column: "main.*.question_position"
go_type: "int"
- column: "main.*.quiz_version"
go_type: "int"
- column: "main.*.quiz_duration"
go_type: "int"
- column: "main.*.active"
go_type: "bool"
- column: "main.*.quiz_active"
go_type: "bool"
- column: "main.*.valid"
go_type: "bool"
- column: "main.*.answer_valid"
go_type: "bool"
- column: "main.*.checked"
go_type: "bool"
- column: "main.*.answer_checked"
go_type: "bool"
- column: "main.*.role_id"
go_type: "int8"
- column: "main.role.id"
go_type: "int8"