-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsqlc.yaml
33 lines (31 loc) · 964 Bytes
/
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
version: "2"
plugins:
- name: golang
wasm:
url: file://./bin/sqlc-gen-go.wasm
sha256: ""
sql:
- engine: "postgresql"
queries: "etc/data/queries/channels.sql"
schema: "etc/data/migrations"
rules:
- sqlc/db-prepare
codegen:
- plugin: golang
out: "pkg/samplesvc"
options:
module: "github.com/eser/go-service/pkg/samplesvc"
sql_package: "database/sql"
initialisms: []
emit_empty_slices: true
emit_nil_records: true
emit_json_tags: true
emit_sql_as_comment: true
emit_result_struct_pointers: true
json_tags_case_style: "camel"
output_models_package: "channel"
output_models_file_name: "business/channel/types.go"
output_db_package: "storage"
output_db_file_name: "adapters/storage/db.go"
output_files_package: "storage"
output_files_prefix: "adapters/storage/"