From 8e132dbdcd8dad009413c74dfa5f4065c831e8ed Mon Sep 17 00:00:00 2001 From: nochill Date: Thu, 14 Sep 2023 14:47:45 +0700 Subject: [PATCH] update sqlc ver 2 --- sqlc.yaml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/sqlc.yaml b/sqlc.yaml index 66980e0..3c61557 100644 --- a/sqlc.yaml +++ b/sqlc.yaml @@ -1,12 +1,14 @@ -version: "1" -packages: - - name: "db" - path: "./db/sqlc" - queries: "./db/queries/" - schema: "./db/migrations/" - engine: "postgresql" - emit_json_tags: true - emit_prepared_queries: false - emit_interface: true - emit_exact_table_names: false - emit_empty_slices: true +version: "2" +sql: + - engine: "postgresql" + queries: "./db/queries" + schema: "./db/migrations" + gen: + go: + package: "db" + out: "./db/sqlc" + emit_json_tags: true + emit_prepared_queries: false + emit_interface: true + emit_exact_table_names: false + emit_empty_slices: true \ No newline at end of file