-
Notifications
You must be signed in to change notification settings - Fork 0
/
sqlc.yaml
15 lines (15 loc) · 912 Bytes
/
sqlc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
version: "2"
sql:
- engine: "postgresql"
queries: "./db/query/" # Directory of SQL queries or path to single SQL file
schema: "./db/schema/" # Directory of SQL migrations or path to single SQL file
gen:
go:
package: "db"
out: "./db/sqlc"
sql_package: "database/sql"
emit_json_tags: true # If true, add JSON tags to generated structs
emit_prepared_queries: false # If true, include support for prepared queries
emit_interface: true # If true, output a Querier interface in the generated package
emit_exact_table_names: false # If true, structs names will mirror table names. Otherwise, sqlc attempts to singularize plural table names.
emit_empty_slices: true # If true, structs names will mirror table names. Otherwise, sqlc attempts to singularize plural table names.