forked from ubccr/grendel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
58 lines (58 loc) · 1.79 KB
/
sqlc.yaml
File metadata and controls
58 lines (58 loc) · 1.79 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
version: "2"
sql:
- engine: "sqlite"
queries: "internal/store/sqlstore/query"
schema: "internal/store/migrations/sql"
gen:
go:
package: "db"
out: "internal/store/sqlstore/db"
emit_json_tags: true
emit_methods_with_db_argument: true
initialisms: ["id", "uid", "fqdn", "mtu", "mac", "vlan", "ip"]
rename:
host_json: "Host"
image_json: "Image"
overrides:
- nullable: true
db_type: "text"
go_type:
import: "github.com/guregu/null/v5"
type: "String"
- nullable: true
db_type: "integer"
go_type:
import: "github.com/guregu/null/v5"
type: "Int64"
- column: "node.provision"
go_type:
type: "bool"
- column: "user.enabled"
go_type:
type: "bool"
- column: "kernel.verify"
go_type:
type: "bool"
- column: "kernel.uid"
go_type:
import: "github.com/segmentio/ksuid"
type: "KSUID"
- column: "node.uid"
go_type:
import: "github.com/segmentio/ksuid"
type: "KSUID"
- column: "node_view.host_json"
go_type:
import: "github.com/ubccr/grendel/pkg/model"
type: "Host"
- column: "kernel_view.image_json"
go_type:
import: "github.com/ubccr/grendel/pkg/model"
type: "BootImage"
- column: "role_view.permission_json"
go_type:
import: "github.com/ubccr/grendel/pkg/model"
type: "RoleView"
- column: "user_view.enabled"
go_type:
type: "bool"