-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsqlc.yml
More file actions
34 lines (33 loc) · 994 Bytes
/
sqlc.yml
File metadata and controls
34 lines (33 loc) · 994 Bytes
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
version: "2"
sql:
- engine: "postgresql"
queries: "database/query.sql"
schema: "database/migrations"
gen:
go:
package: "database"
out: "internal/database"
sql_package: "pgx/v5"
emit_result_struct_pointers: true
emit_params_struct_pointers: true
emit_pointers_for_null_types: true
emit_json_tags: true
overrides:
- column: "artists.external_urls"
go_type:
type: "map[string]string"
- column: "artists.genres"
go_type:
type: "[]string"
- column: "albums.external_urls"
go_type:
type: "map[string]string"
- column: "albums.genres"
go_type:
type: "[]string"
- column: "tracks.external_urls"
go_type:
type: "map[string]string"
- column: "playlists.external_urls"
go_type:
type: "map[string]string"