Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
update redshift driver from not imported postgres to pgx
Browse files Browse the repository at this point in the history
  • Loading branch information
vpetrosian committed Jul 26, 2023
1 parent 0774ee6 commit e5d1c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ func OpenDBWithDriver(driver string, dbstring string) (*sql.DB, error) {
case "mssql":
driver = "sqlserver"
case "redshift":
driver = "postgres"
driver = "pgx"
case "tidb":
driver = "mysql"
}

switch driver {
case "postgres", "pgx", "sqlite3", "sqlite", "mysql", "sqlserver", "clickhouse", "vertica", "azuresql":
case "pgx", "sqlite3", "sqlite", "mysql", "sqlserver", "clickhouse", "vertica", "azuresql":
return sql.Open(driver, dbstring)
default:
return nil, fmt.Errorf("unsupported driver %s", driver)
Expand Down

0 comments on commit e5d1c7f

Please sign in to comment.