-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
76 lines (75 loc) · 2.21 KB
/
sqlc.yaml
File metadata and controls
76 lines (75 loc) · 2.21 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
67
68
69
70
71
72
73
74
75
76
version: "2"
sql:
- schema: "db/schema.sql"
queries:
- "**/queries.sql"
engine: "postgresql"
gen:
go:
sql_package: pgx/v5
emit_pointers_for_null_types: true
emit_result_struct_pointers: true
emit_json_tags: true
package: "db"
out: "db"
rename:
spotify_track_cache: "TrackData"
uri: "URI"
artist_uri: "ArtistURI"
album_uri: "AlbumURI"
spotify_album_cache: "AlbumData"
spotify_artist_cache: "ArtistData"
overrides:
- db_type: pg_catalog.timestamp
go_type: time.Time
- db_type: pg_catalog.timestamptz
go_type: time.Time
- db_type: pg_catalog.timestamp
nullable: true
go_type:
type: time.Time
pointer: true
- db_type: date
nullable: true
go_type:
type: time.Time
pointer: true
- db_type: pg_catalog.timestamptz
nullable: true
go_type:
type: time.Time
pointer: true
- db_type: uuid
go_type:
import: github.com/google/uuid
package: uuid
type: UUID
- db_type: uuid
nullable: true
go_type:
import: github.com/google/uuid
package: uuid
type: UUID
pointer: true
- column: spotify_track_cache.other_artists
go_type:
type: "TrackArtists"
- column: spotify_artist_cache.genres
go_type:
type: "[]string"
- column: spotify_album_cache.genres
go_type:
type: "[]string"
- column: spotify_track_cache.external_ids
go_type:
type: TrackExternalIDs
- column: spotify_album_cache.spotify_track_ids
go_type:
type: "[]string"
- column: spotify_album_cache.spotify_track_ids
go_type:
type: "[]string"
- column: spotify_album_cache.track_isrcs
go_type:
type: "[]string"
strict_order_by: false