-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
29 lines (29 loc) · 785 Bytes
/
sqlc.yaml
File metadata and controls
29 lines (29 loc) · 785 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
version: "2"
sql:
- engine: "postgresql"
schema: "./cmd/migrator/migrations"
queries: "./sql"
gen:
go:
package: "repository"
out: "internal/repository"
sql_package: "pgx/v5"
emit_json_tags: true
overrides:
- db_type: "pg_catalog.timestamptz"
go_type:
import: "time"
type: "Time"
- column: "player.password_hash"
go_struct_tag: 'json:"-"'
- column: "game_session.state"
go_struct_tag: 'json:"-"'
- column: "game_session.player_id"
go_type:
type: "int64"
pointer: True
- column: "game_session.ended_at"
go_type:
import: "time"
type: "Time"
pointer: True