This commit is contained in:
2022-03-19 18:49:41 -07:00
parent 94f996c10d
commit 618ccc23b9
8 changed files with 449 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ func connString(user, pass, host, name, port string) string {
func Connect(ctx context.Context) (*pgxpool.Pool, error) {
driver := config.GetDefault(kDriver, defaultDriver)
if driver != defaultDriver {
return nil, errors.F("database: unsupported driver %s", driver)
return nil, fmt.Errorf("database: unsupported driver %s", driver)
}
user := config.GetDefault(kUser, defaultUser)