sqlx: fixed ams inital error for sqlc feature

x/navis
Michael Li 2 years ago
parent 7d2a2fd285
commit 59edb16621
No known key found for this signature in database

@ -95,7 +95,7 @@ func newAuthorizationManageService() (s core.AuthorizationManageService) {
s = jinzhu.NewAuthorizationManageService()
} else if cfg.If("Sqlx") && cfg.If("MySQL") {
s = sakila.NewAuthorizationManageService()
} else if cfg.If("Sqlx") && (cfg.If("Postgres") || cfg.If("PostgreSQL")) {
} else if cfg.If("Sqlc") && (cfg.If("Postgres") || cfg.If("PostgreSQL")) {
s = slonik.NewAuthorizationManageService()
} else {
s = jinzhu.NewAuthorizationManageService()

Loading…
Cancel
Save