-
Notifications
You must be signed in to change notification settings - Fork 1
/
sqlc.yaml
45 lines (42 loc) · 1.23 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
version: "2"
sql:
- engine: "sqlite"
queries: "db/queries"
schema: "db/migrations"
database:
uri: "sqlite3://${DB}"
gen:
go:
package: "db"
out: "service/db"
emit_json_tags: true
emit_empty_slices: true
overrides:
- db_type: "REAL"
go_type:
import: "github.com/is1ab/Arvosana/types"
type: "NullFloat64"
nullable: true
- db_type: "TEXT"
go_type:
import: "github.com/is1ab/Arvosana/types"
type: "NullString"
nullable: true
- db_type: "DATETIME_TEXT"
go_type:
import: "github.com/is1ab/Arvosana/types"
type: "Datetime"
- db_type: "DATETIME_TEXT"
go_type:
import: "github.com/is1ab/Arvosana/types"
type: "NullDatetime"
nullable: true
- db_type: "SEMESTER_TEXT"
go_type:
import: "github.com/is1ab/Arvosana/types"
type: "Semester"
- db_type: "SEMESTER_TEXT"
go_type:
import: "github.com/is1ab/Arvosana/types"
type: "NullSemester"
nullable: true