-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsqlc.yaml
27 lines (27 loc) · 893 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
# sqlc configuration file
# https://docs.sqlc.dev/en/stable/reference/config.html
#
# run `sqlc generate` to generate Go code from SQL queries and schema definitions.
#
# use `golang-migrate` to manage your database schema
# https://docs.sqlc.dev/en/stable/howto/ddl.html#golang-migrate
version: "2"
sql:
- schema: "./modules/runes/database/postgresql/migrations"
queries: "./modules/runes/database/postgresql/queries"
engine: "postgresql"
gen:
go:
package: "gen"
out: "./modules/runes/repository/postgres/gen"
sql_package: "pgx/v5"
rename:
id: "Id"
- schema: "./modules/nodesale/database/postgresql/migrations"
queries: "./modules/nodesale/database/postgresql/queries"
engine: "postgresql"
gen:
go:
package: "gen"
out: "./modules/nodesale/repository/postgres/gen"
sql_package: "pgx/v5"