-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsqlc.yaml
25 lines (24 loc) · 810 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
version: "2"
plugins:
- name: ts
wasm:
url: https://downloads.sqlc.dev/plugin/sqlc-gen-typescript_0.1.3.wasm
sha256: 287df8f6cc06377d67ad5ba02c9e0f00c585509881434d15ea8bd9fc751a9368
sql:
- engine: "postgresql"
schema: "service/common-job/infra/database/schema/migration"
queries: "service/common-job/infra/database/schema/query"
gen:
go:
package: "db_sqlc"
out: "service/common-job/infra/database/internal/gen"
sql_package: "pgx/v5"
- engine: postgresql
schema: "service/common-job/infra/database/schema/migration"
queries: "service/common-api-server/pkg/db/postgres/query"
codegen:
- out: "service/common-api-server/pkg/db/postgres/gen"
plugin: ts
options:
runtime: node
driver: postgres