-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsqlc.yaml
More file actions
42 lines (42 loc) · 1.2 KB
/
sqlc.yaml
File metadata and controls
42 lines (42 loc) · 1.2 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
version: "2"
sql:
- schema: "sql/schema"
queries: "sql/queries"
engine: "postgresql"
gen:
go:
sql_package: "pgx/v5"
out: "internal/database"
emit_pointers_for_null_types: true
emit_json_tags: true
overrides:
- db_type: "uuid"
go_type: "github.com/google/uuid.UUID"
- db_type: "uuid"
go_type: "github.com/google/uuid.UUID"
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
pointer: true
nullable: true
- db_type: "pg_catalog.timestamptz"
nullable: true
go_type:
import: "time"
type: "Time"
pointer: true
- db_type: "pg_catalog.timestamptz"
go_type: "time.Time"
- db_type: "timestamptz"
go_type: "time.Time"
- db_type: "jsonb"
go_type:
import: "encoding/json"
type: "RawMessage"
- db_type: "jsonb"
nullable: true
go_type:
import: "encoding/json"
type: "RawMessage"
pointer: true