-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlc.json
109 lines (109 loc) · 2.63 KB
/
sqlc.json
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"version": "2",
"sql": [
{
"engine": "sqlite",
"database": {
"uri": "${SQLITE3_DB_STRING}"
},
"schema": "sqlite/migrations",
"queries": "sqlite/queries",
"gen": {
"go": {
"package": "sqlc",
"out": "generated",
"emit_pointers_for_null_types": true,
"emit_empty_slices": true,
"emit_sql_as_comment": true,
"rename": {
"user": "User_sqlc",
"item": "Item_sqlc",
"nutrition": "Nutrition_sqlc",
"notification": "Notification_sqlc",
"language": "Language_sqlc",
"portion": "Portion_sqlc",
"meal": "Meal_sqlc",
"meallog": "MealLog_sqlc",
"daily_quota": "DailyQuota_sqlc",
}
}
}
}
],
"overrides": {
"go": {
"overrides": [
{
"db_type": "INTEGER",
"nullable": true,
"go_type": {
"type": "*int64",
}
},
{
"db_type": "INTEGER",
"nullable": false,
"go_type": {
"type": "int64",
}
},
{
"db_type": "TIME",
"nullable": true,
"engine": "sqlite",
"go_type": {
"import": "github.com/szabolcs-horvath/nutrition-tracker/custom_types",
"type": "Time",
"pointer": true
}
},
{
"db_type": "TIME",
"nullable": false,
"engine": "sqlite",
"go_type": {
"import": "github.com/szabolcs-horvath/nutrition-tracker/custom_types",
"type": "Time",
"pointer": false
}
},
{
"db_type": "DATE",
"nullable": true,
"engine": "sqlite",
"go_type": {
"import": "github.com/szabolcs-horvath/nutrition-tracker/custom_types",
"type": "Date",
"pointer": true
}
},
{
"db_type": "DATE",
"nullable": false,
"engine": "sqlite",
"go_type": {
"import": "github.com/szabolcs-horvath/nutrition-tracker/custom_types",
"type": "Date",
"pointer": false
}
},
{
"db_type": "DATETIME",
"nullable": true,
"engine": "sqlite",
"go_type": {
"type": "*time.Time",
}
},
{
"db_type": "DATETIME",
"nullable": false,
"engine": "sqlite",
"go_type": {
"type": "time.Time",
}
}
]
}
}
}