mirror of https://github.com/pressly/goose.git
feat: add support for azuresql dialect (#487)
parent
8574431aad
commit
49c55f0f98
2
db.go
2
db.go
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue