update sqlc ver 2

This commit is contained in:
nochill 2023-09-14 14:47:45 +07:00
parent 1a6ea59e92
commit 8e132dbdcd

View File

@ -1,12 +1,14 @@
version: "1" version: "2"
packages: sql:
- name: "db" - engine: "postgresql"
path: "./db/sqlc" queries: "./db/queries"
queries: "./db/queries/" schema: "./db/migrations"
schema: "./db/migrations/" gen:
engine: "postgresql" go:
emit_json_tags: true package: "db"
emit_prepared_queries: false out: "./db/sqlc"
emit_interface: true emit_json_tags: true
emit_exact_table_names: false emit_prepared_queries: false
emit_empty_slices: true emit_interface: true
emit_exact_table_names: false
emit_empty_slices: true