-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsqlc.yaml
More file actions
29 lines (29 loc) · 921 Bytes
/
Copy pathsqlc.yaml
File metadata and controls
29 lines (29 loc) · 921 Bytes
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
version: "2"
sql:
- schema: "schema.sql"
queries: "query.sql"
engine: "postgresql"
strict_order_by: false
gen:
go:
package: "ntpdb"
out: "ntpdb"
sql_package: "pgx/v5"
emit_json_tags: true
omit_unused_structs: true
emit_interface: true
# emit_all_enum_values: true
overrides:
- db_type: "bigint"
go_type: "github.com/lomsa-dev/gonull.Nullable[uint64]"
nullable: true
- column: "accounts.flags"
go_type: "*encoding/json.RawMessage"
- column: "log_scores.attributes"
go_type: "*encoding/json.RawMessage"
- column: "monitors.config"
go_type: "encoding/json.RawMessage"
- column: "servers.flags"
go_type: "encoding/json.RawMessage"
# - column: "x.avg_rtt"
# go_type: "database/sql.NullFloat64"