-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqlc.yaml
34 lines (34 loc) · 1.07 KB
/
sqlc.yaml
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: "query.sql"
schema: "../lexicon-beneficial-ownership-database-migration/lexicon-bo-crawler-v2/"
gen:
go:
package: "repository"
out: "repository"
sql_package: "pgx/v5"
emit_pointers_for_null_types: true
overrides:
- db_type: "uuid"
go_type:
import: "github.com/google/uuid"
type: "UUID"
- db_type: "timestamptz"
go_type:
import: "time"
type: "Time"
- db_type: "inet"
go_type:
import: "net"
type: "IP"
- column: "url_frontiers.metadata"
go_type:
import: "lexicon/singapore-supreme-court-crawler/crawler/models"
package: "crawlerModel"
type: "UrlFrontierMetadata"
- column: "extractions.metadata"
go_type:
import: "lexicon/singapore-supreme-court-crawler/scrapper/models"
package: "scrapperModel"
type: "Metadata"