-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlc.yaml
24 lines (24 loc) · 875 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
version: "2"
sql:
- engine: "postgresql"
queries: "pkg/queries/"
schema: "pkg/migrations/"
gen:
go:
package: "dbschema"
sql_package: "pgx/v5"
out: "pkg/dbschema"
emit_json_tags: true
emit_empty_slices: true
json_tags_case_style: snake
overrides:
- db_type: "orientation"
go_type: "github.com/SmartFactory-Tec/camera_service/pkg/dbenums.Orientation"
- db_type: "direction"
go_type: "github.com/SmartFactory-Tec/camera_service/pkg/dbenums.Direction"
- db_type: "orientation"
go_type: "github.com/SmartFactory-Tec/camera_service/pkg/dbenums.NullOrientation"
nullable: true
- db_type: "direction"
go_type: "github.com/SmartFactory-Tec/camera_service/pkg/dbenums.NullDirection"
nullable: true