Repository navigation
Expand file tree
/
Copy pathsqlc.yaml
More file actions
66 lines (66 loc) · 1.81 KB
/
Copy pathsqlc.yaml
File metadata and controls
66 lines (66 loc) · 1.81 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "2"
sql:
- engine: postgresql
schema: migrations
queries: internal/store/queries
gen:
go:
package: dbgen
out: internal/store/dbgen
sql_package: pgx/v5
emit_empty_slices: true
rename:
client_ip: ClientIP
oidc_issuer: OIDCIssuer
oidc_subject: OIDCSubject
csrf_token: CSRFToken
request_id: RequestID
base_url: BaseURL
knowledge_basis: KnowledgeBase
api_key: APIKey
api_key_id: APIKeyID
kb_id: KBID
kb_ids: KBIDs
agent_ids: AgentIDs
url: URL
ip_prefix: IPPrefix
overrides:
- db_type: uuid
go_type: github.com/google/uuid.UUID
- db_type: uuid
nullable: true
go_type: github.com/google/uuid.NullUUID
- db_type: timestamptz
go_type: time.Time
- db_type: timestamptz
nullable: true
go_type:
type: time.Time
pointer: true
- db_type: jsonb
go_type: encoding/json.RawMessage
- db_type: jsonb
nullable: true
go_type: encoding/json.RawMessage
- db_type: citext
go_type: string
- db_type: text
nullable: true
go_type:
type: string
pointer: true
- db_type: pg_catalog.int4
nullable: true
go_type:
type: int32
pointer: true
- db_type: pg_catalog.float8
nullable: true
go_type:
type: float64
pointer: true
- db_type: pg_catalog.int8
nullable: true
go_type:
type: int64
pointer: true