mirror of https://github.com/pressly/goose.git
renamed sqlserver to mssql.
parent
e11a96e0db
commit
6896ffb1dd
|
@ -44,7 +44,7 @@ Drivers:
|
|||
postgres
|
||||
mysql
|
||||
sqlite3
|
||||
sqlserver
|
||||
mssql
|
||||
redshift
|
||||
|
||||
Examples:
|
||||
|
@ -58,7 +58,7 @@ Examples:
|
|||
goose mysql "user:password@/dbname?parseTime=true" status
|
||||
goose redshift "postgres://user:password@qwerty.us-east-1.redshift.amazonaws.com:5439/db" status
|
||||
goose tidb "user:password@/dbname?parseTime=true" status
|
||||
goose sqlserver "sqlserver://user:password@dbname:1433?database=master" status
|
||||
goose mssql "sqlserver://user:password@dbname:1433?database=master" status
|
||||
|
||||
Options:
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build !no_sqlserver
|
||||
// +build !no_mssql
|
||||
|
||||
package main
|
||||
|
|
@ -83,7 +83,7 @@ Drivers:
|
|||
postgres
|
||||
mysql
|
||||
sqlite3
|
||||
sqlserver
|
||||
mssql
|
||||
redshift
|
||||
|
||||
Examples:
|
||||
|
@ -97,7 +97,7 @@ Examples:
|
|||
goose mysql "user:password@/dbname?parseTime=true" status
|
||||
goose redshift "postgres://user:password@qwerty.us-east-1.redshift.amazonaws.com:5439/db" status
|
||||
goose tidb "user:password@/dbname?parseTime=true" status
|
||||
goose sqlserver "sqlserver://user:password@dbname:1433?database=master" status
|
||||
goose mssql "sqlserver://user:password@dbname:1433?database=master" status
|
||||
|
||||
Options:
|
||||
`
|
||||
|
|
2
db.go
2
db.go
|
@ -20,7 +20,7 @@ func OpenDBWithDriver(driver string, dbstring string) (*sql.DB, error) {
|
|||
}
|
||||
|
||||
switch driver {
|
||||
case "postgres", "sqlite3", "mysql", "sqlserver":
|
||||
case "postgres", "sqlite3", "mysql", "mssql":
|
||||
return sql.Open(driver, dbstring)
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupported driver %s", driver)
|
||||
|
|
|
@ -31,7 +31,7 @@ func SetDialect(d string) error {
|
|||
dialect = &MySQLDialect{}
|
||||
case "sqlite3":
|
||||
dialect = &Sqlite3Dialect{}
|
||||
case "sqlserver":
|
||||
case "mssql":
|
||||
dialect = &SqlServerDialect{}
|
||||
case "redshift":
|
||||
dialect = &RedshiftDialect{}
|
||||
|
|
Loading…
Reference in New Issue