-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
42 lines (42 loc) · 1.56 KB
/
Copy pathsqlc.yaml
File metadata and controls
42 lines (42 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
version: "2"
sql:
- engine: "postgresql"
schema:
- "internal/data/migrations/000001_initial.up.sql"
- "internal/data/migrations/000002_holdem_tables.up.sql"
- "internal/data/migrations/000003_forum_activity_reads.up.sql"
- "internal/data/migrations/000004_browser_bookmarks.up.sql"
- "internal/data/migrations/000005_security_events_and_bans.up.sql"
- "internal/data/migrations/000006_system_settings.up.sql"
- "internal/data/migrations/000008_web_browsing.up.sql"
- "internal/data/migrations/000009_users_preferred_news_source.up.sql"
- "internal/data/migrations/000010_roulette_state.up.sql"
- "internal/data/migrations/000011_oauth_tokens.up.sql"
queries: "internal/data/queries"
gen:
go:
package: "gen"
out: "internal/data/gen"
sql_package: "pgx/v5"
emit_pointers_for_null_types: true
emit_interface: false
emit_db_tags: false
emit_json_tags: false
emit_prepared_queries: false
overrides:
# citext columns. sqlc doesn't recognize the extension type by default
# (it falls through to interface{}); override each column explicitly.
- column: "users.handle"
go_type:
type: "string"
- column: "users.email"
go_type:
type: "string"
pointer: true
- column: "channels.name"
go_type:
type: "string"
- db_type: "tsvector"
go_type:
type: "string"
nullable: true