-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
50 lines (50 loc) · 1.63 KB
/
Copy pathsqlc.yaml
File metadata and controls
50 lines (50 loc) · 1.63 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
version: "2"
sql:
- engine: "postgresql"
schema: "internal/db/migrations"
queries: "internal/db/query"
gen:
go:
package: "db"
out: "internal/db"
sql_package: "pgx/v5"
emit_pointers_for_null_types: true
emit_empty_slices: true
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
# The aggregate columns and per-iteration data/times are floats in the
# stats core; map numeric -> float64 (and numeric[] -> []float64).
- db_type: "pg_catalog.numeric"
go_type: "float64"
- db_type: "pg_catalog.numeric"
nullable: true
go_type:
type: "float64"
pointer: true
- db_type: "pg_catalog.timestamp"
go_type:
import: "time"
type: "Time"
- db_type: "pg_catalog.timestamp"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
# benchmark_result.data/times are per-iteration samples where an
# element can be NULL (a missing iteration, legacy parity). Column
# overrides beat the catch-all numeric mapping above, so every other
# numeric[] stays []float64.
- column: "benchmark_result.data"
go_type:
type: "float64"
pointer: true
slice: true
- column: "benchmark_result.times"
go_type:
type: "float64"
pointer: true
slice: true