-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
59 lines (58 loc) · 1.81 KB
/
sqlc.yaml
File metadata and controls
59 lines (58 loc) · 1.81 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
57
58
59
version: "2"
sql:
- engine: "postgresql"
schema: "./internal/storage/pg/migrations"
queries: "./internal/storage/pg/queries/"
gen:
go:
package: "pgdb"
out: "./internal/storage/pg/sqlc"
emit_json_tags: true
emit_prepared_queries: false
emit_interface: true
emit_exact_table_names: false
emit_empty_slices: true
emit_exported_queries: false
emit_result_struct_pointers: false
emit_params_struct_pointers: false
emit_methods_with_db_argument: false
emit_pointers_for_null_types: true
emit_enum_valid_method: false
emit_all_enum_values: false
json_tags_case_style: "camel"
overrides:
- column: "invite_codes.id"
go_type: "int64"
- column: "invite_codes.created_by"
go_type: "int64"
- column: "request_logs.id"
go_type: "int64"
- column: "telegram_chats.id"
go_type: "int64"
- column: "telegram_chats.chat_id"
go_type: "int64"
- column: "*.created_at"
go_type: "time.Time"
- column: "*.updated_at"
go_type: "time.Time"
- column: "invite_codes.redeemed_at"
go_type:
type: "time.Time"
pointer: true
- column: "invite_codes.expires_at"
go_type:
type: "time.Time"
pointer: true
- column: "invite_codes.deleted_at"
go_type:
type: "time.Time"
pointer: true
- column: "request_logs.model"
go_type:
type: "string"
pointer: true
- db_type: "text"
nullable: true
go_type:
type: "string"
pointer: true