-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yml
More file actions
49 lines (48 loc) · 1.59 KB
/
Copy pathsqlc.yml
File metadata and controls
49 lines (48 loc) · 1.59 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
version: "2"
sql:
# dispatcher
- engine: "sqlite"
queries: "internal/dispatcher/database/queries"
schema: "internal/dispatcher/database/migrations"
gen:
go:
package: "database"
out: "internal/dispatcher/database"
overrides:
- column: "debuglets.state"
go_type:
import: "github.com/netsec-ethz/debuglet/internal/dispatcher/models"
type: "DebugletRunState"
- column: "debuglets.addresses"
go_type:
import: "github.com/netsec-ethz/debuglet/internal/dispatcher/models"
type: "CommaSeparatedList"
- db_type: "TIMESTAMP"
go_type:
import: "github.com/netsec-ethz/debuglet/internal/dispatcher/models"
type: "UTCTime"
- column: "users.uuid"
go_type: "github.com/google/uuid.UUID"
- column: "debuglets.uuid"
go_type: "github.com/google/uuid.UUID"
# executor
- engine: "sqlite"
queries: "internal/executor/database/queries"
schema: "internal/executor/database/migrations"
gen:
go:
package: "database"
out: "internal/executor/database"
overrides:
- column: "debuglets.addresses"
go_type:
type: "CommaSeparatedList"
- column: "debuglets.args"
go_type:
type: "CommaSeparatedList"
- db_type: "TIMESTAMP"
nullable: true
go_type:
type: "UTCTime"
- column: "debuglets.uuid"
go_type: "github.com/google/uuid.UUID"