Repository navigation
Expand file tree
/
Copy pathsqlc.yaml
More file actions
50 lines (50 loc) · 1.56 KB
/
Copy pathsqlc.yaml
File metadata and controls
50 lines (50 loc) · 1.56 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"
queries: "internal/store/queries/"
schema: "internal/migrations/sql/"
gen:
go:
package: "sqlc"
out: "internal/store/sqlc"
emit_json_tags: true
emit_interface: false
emit_exact_table_names: false
sql_package: "pgx/v5"
overrides:
- db_type: "uuid"
nullable: false
go_type:
import: "github.com/jackc/pgx/v5/pgtype"
type: "UUID"
- db_type: "uuid"
nullable: true
go_type:
import: "github.com/jackc/pgx/v5/pgtype"
type: "UUID"
- db_type: "timestamptz"
nullable: false
go_type:
import: "github.com/jackc/pgx/v5/pgtype"
type: "Timestamptz"
- db_type: "timestamptz"
nullable: true
go_type:
import: "github.com/jackc/pgx/v5/pgtype"
type: "Timestamptz"
- db_type: "jsonb"
nullable: false
go_type:
import: "encoding/json"
type: "RawMessage"
- db_type: "jsonb"
nullable: true
go_type:
import: "encoding/json"
type: "RawMessage"
# pipelines.source is a text column with a CHECK constraint; the
# named type lets the exhaustive linter check every switch on it.
- column: "pipelines.source"
go_type:
import: "shepherd/internal/pipelinesource"
type: "Source"