-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsqlc.yaml
More file actions
28 lines (27 loc) · 884 Bytes
/
sqlc.yaml
File metadata and controls
28 lines (27 loc) · 884 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
version: "2"
sql:
# SQLite queries (default driver)
- engine: "sqlite"
queries: "internal/db/queries/sqlite"
schema: "internal/db/migrations"
gen:
go:
package: "dbsqlite"
out: "internal/db/generated/sqlite"
emit_interface: true
emit_json_tags: true
emit_pointers_for_null_types: true
json_tags_case_style: "camel"
# PostgreSQL queries — added in a later phase when needed.
# Uncomment and add queries to internal/db/queries/postgres/ to enable.
# - engine: "postgresql"
# queries: "internal/db/queries/postgres"
# schema: "internal/db/migrations"
# gen:
# go:
# package: "dbpostgres"
# out: "internal/db/generated/postgres"
# emit_interface: true
# emit_json_tags: true
# emit_pointers_for_null_types: true
# json_tags_case_style: "camel"