From 32453d8718e9a8d61610bad17870576fe9f0ef67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bernacki?= Date: Wed, 27 Sep 2023 14:02:01 +0200 Subject: [PATCH] upgrade to sqlc v2 (#13) --- db/sqlc/account.sql.go | 2 +- db/sqlc/db.go | 2 +- db/sqlc/entry.sql.go | 2 +- db/sqlc/models.go | 2 +- db/sqlc/querier.go | 2 +- db/sqlc/transfer.sql.go | 2 +- db/sqlc/user.sql.go | 2 +- sqlc.yaml | 24 ++++++++++++------------ 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/db/sqlc/account.sql.go b/db/sqlc/account.sql.go index 79646c2..2ea210b 100644 --- a/db/sqlc/account.sql.go +++ b/db/sqlc/account.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.20.0 +// sqlc v1.21.0 // source: account.sql package db diff --git a/db/sqlc/db.go b/db/sqlc/db.go index bf8f8e3..46fda54 100644 --- a/db/sqlc/db.go +++ b/db/sqlc/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.20.0 +// sqlc v1.21.0 package db diff --git a/db/sqlc/entry.sql.go b/db/sqlc/entry.sql.go index 9912c73..d2080e3 100644 --- a/db/sqlc/entry.sql.go +++ b/db/sqlc/entry.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.20.0 +// sqlc v1.21.0 // source: entry.sql package db diff --git a/db/sqlc/models.go b/db/sqlc/models.go index ed5fc19..5c89958 100644 --- a/db/sqlc/models.go +++ b/db/sqlc/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.20.0 +// sqlc v1.21.0 package db diff --git a/db/sqlc/querier.go b/db/sqlc/querier.go index ef6148c..ba338e4 100644 --- a/db/sqlc/querier.go +++ b/db/sqlc/querier.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.20.0 +// sqlc v1.21.0 package db diff --git a/db/sqlc/transfer.sql.go b/db/sqlc/transfer.sql.go index f27c6fd..3f9a7cf 100644 --- a/db/sqlc/transfer.sql.go +++ b/db/sqlc/transfer.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.20.0 +// sqlc v1.21.0 // source: transfer.sql package db diff --git a/db/sqlc/user.sql.go b/db/sqlc/user.sql.go index 74527f5..87977e3 100644 --- a/db/sqlc/user.sql.go +++ b/db/sqlc/user.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.20.0 +// sqlc v1.21.0 // source: user.sql package db diff --git a/sqlc.yaml b/sqlc.yaml index 9283f95..8b09e1c 100644 --- a/sqlc.yaml +++ b/sqlc.yaml @@ -1,12 +1,12 @@ -version: "1" -packages: - - name: "db" - path: "./db/sqlc" - queries: "./db/query/" - schema: "./db/migration/" - engine: "postgresql" - 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 +version: "2" +sql: +- schema: "db/migration" + queries: "db/query" + engine: "postgresql" + gen: + go: + package: "db" + out: "db/sqlc" + emit_json_tags: true + emit_interface: true + emit_empty_slices: true