Mirror for https://github.com/STBoyden/go-portfolio
1version: "2"
2sql:
3 - engine: "postgresql"
4 schema: "./migrations"
5 queries: "./queries"
6 gen:
7 go:
8 emit_json_tags: true
9 package: "persistence"
10 out: "internal/pkg/persistence"
11 sql_package: "pgx/v5"
12 overrides:
13 - db_type: "uuid"
14 go_type:
15 import: "github.com/google/uuid"
16 type: "UUID"
17 - db_type: "pg_catalog.timestamp"
18 go_type:
19 import: "time"
20 type: "Time"
21 - db_type: "pg_catalog.timestamptz"
22 go_type:
23 import: "time"
24 type: "Time"
25 - db_type: "timestamp"
26 go_type:
27 import: "time"
28 type: "Time"
29 - db_type: "timestamptz"
30 go_type:
31 import: "time"
32 type: "Time"
33 - column: "posts.content"
34 go_type:
35 import: "github.com/STBoyden/go-portfolio/internal/pkg/types"
36 package: "types"
37 type: "BlogContent"