-
Notifications
You must be signed in to change notification settings - Fork 1
/
sqlc.yaml
28 lines (28 loc) · 984 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
27
28
version: "2"
sql:
- schema: "./db/migrations"
queries: "./db/queries"
engine: "postgresql"
gen:
go:
package: "models"
out: "./models"
sql_package: "pgx/v5"
emit_json_tags: true
emit_prepared_queries: true
emit_interface: true
emit_pointers_for_null_types: false
emit_exact_table_names: false
emit_empty_slices: true
query_parameter_limit: 2
rename:
user_name: "Username"
overrides:
- column: "users.flags"
go_type: "github.com/undernetirc/cservice-api/db/types/flags.User"
- column: "acl.flags"
go_type: "github.com/undernetirc/cservice-api/db/types/flags.ACL"
- column: "users.password"
go_type: "github.com/undernetirc/cservice-api/db/types/password.Password"
- column: "pendingusers.password"
go_type: "github.com/undernetirc/cservice-api/db/types/password.Password"