-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathsqlc.yaml
26 lines (26 loc) · 889 Bytes
/
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
version: "2"
sql:
- engine: "sqlite"
schema: "store/migrations/"
queries: "store/queries/"
gen:
go:
package: "store"
out: "store"
emit_json_tags: true
overrides:
- column: "dosing.quantity"
go_struct_tag: 'validate:"required,gt=0"'
- column: "dosing.unit"
go_struct_tag: 'validate:"required"'
go_type:
import: "github.com/go-fuego/fuego/examples/full-app-gourmet/store/types"
type: "Unit"
- column: "ingredient.category"
go_type:
import: "github.com/go-fuego/fuego/examples/full-app-gourmet/store/types"
type: "Category"
- column: "ingredient.default_unit"
go_type:
import: "github.com/go-fuego/fuego/examples/full-app-gourmet/store/types"
type: "Unit"