From 6890f4f5fc5e3e19a15a9e5265bc69fec293a12a Mon Sep 17 00:00:00 2001 From: Michael Li Date: Thu, 5 Jan 2023 17:30:56 +0800 Subject: [PATCH] sqlx: optimize ams initial for sqlc feature --- internal/dao/dao.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dao/dao.go b/internal/dao/dao.go index edbb7834..2a70016f 100644 --- a/internal/dao/dao.go +++ b/internal/dao/dao.go @@ -93,7 +93,7 @@ func TweetSearchService() core.TweetSearchService { func newAuthorizationManageService() (s core.AuthorizationManageService) { if cfg.If("Gorm") { s = jinzhu.NewAuthorizationManageService() - } else if cfg.If("Sqlx") && cfg.If("MySQL") { + } else if cfg.If("Sqlx") { s = sakila.NewAuthorizationManageService() } else if cfg.If("Sqlc") && (cfg.If("Postgres") || cfg.If("PostgreSQL")) { s = slonik.NewAuthorizationManageService()