Skip to content

Commit

Permalink
feat: add support for azuresql dialect (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
sblackstone authored Mar 29, 2023
1 parent 8574431 commit 49c55f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func OpenDBWithDriver(driver string, dbstring string) (*sql.DB, error) {
}

switch driver {
case "postgres", "pgx", "sqlite3", "sqlite", "mysql", "sqlserver", "clickhouse", "vertica":
case "postgres", "pgx", "sqlite3", "sqlite", "mysql", "sqlserver", "clickhouse", "vertica", "azuresql":
return sql.Open(driver, dbstring)
default:
return nil, fmt.Errorf("unsupported driver %s", driver)
Expand Down
2 changes: 1 addition & 1 deletion dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func SetDialect(s string) error {
d = dialect.Mysql
case "sqlite3", "sqlite":
d = dialect.Sqlite3
case "mssql":
case "mssql", "azuresql":
d = dialect.Sqlserver
case "redshift":
d = dialect.Redshift
Expand Down

0 comments on commit 49c55f0

Please sign in to comment.