From b14b8788abda9c05e7620af1f148fffdea1c8f0c Mon Sep 17 00:00:00 2001 From: Muyao CHEN Date: Sun, 6 Oct 2024 10:29:09 +0200 Subject: [PATCH] fix: wrong directory for sqlc generated code --- internal/howmuch/{controller => adapter}/repo/sqlc/db.go | 0 internal/howmuch/{controller => adapter}/repo/sqlc/models.go | 0 .../howmuch/{controller => adapter}/repo/sqlc/user.sql.go | 0 sqlc.yml | 4 ++-- 4 files changed, 2 insertions(+), 2 deletions(-) rename internal/howmuch/{controller => adapter}/repo/sqlc/db.go (100%) rename internal/howmuch/{controller => adapter}/repo/sqlc/models.go (100%) rename internal/howmuch/{controller => adapter}/repo/sqlc/user.sql.go (100%) diff --git a/internal/howmuch/controller/repo/sqlc/db.go b/internal/howmuch/adapter/repo/sqlc/db.go similarity index 100% rename from internal/howmuch/controller/repo/sqlc/db.go rename to internal/howmuch/adapter/repo/sqlc/db.go diff --git a/internal/howmuch/controller/repo/sqlc/models.go b/internal/howmuch/adapter/repo/sqlc/models.go similarity index 100% rename from internal/howmuch/controller/repo/sqlc/models.go rename to internal/howmuch/adapter/repo/sqlc/models.go diff --git a/internal/howmuch/controller/repo/sqlc/user.sql.go b/internal/howmuch/adapter/repo/sqlc/user.sql.go similarity index 100% rename from internal/howmuch/controller/repo/sqlc/user.sql.go rename to internal/howmuch/adapter/repo/sqlc/user.sql.go diff --git a/sqlc.yml b/sqlc.yml index 5b24f84..a512ce5 100644 --- a/sqlc.yml +++ b/sqlc.yml @@ -23,9 +23,9 @@ version: "2" sql: - engine: "postgresql" - queries: "internal/app/adapter/repo/sqlc" + queries: "internal/howmuch/adapter/repo/sqlc" schema: "migrations" gen: go: - out: "internal/app/controller/repo/sqlc" + out: "internal/howmuch/adapter/repo/sqlc" sql_package: "pgx/v5"