mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-13 08:30:03 +01:00
Add SQLite support
This commit is contained in:
parent
80eec3fe7b
commit
d5f862c00b
6 changed files with 303 additions and 6 deletions
|
|
@ -28,8 +28,10 @@ func GetDriver(name string) (Driver, error) {
|
|||
switch name {
|
||||
case "mysql":
|
||||
return MySQLDriver{}, nil
|
||||
case "postgres":
|
||||
case "postgres", "postgresql":
|
||||
return PostgresDriver{}, nil
|
||||
case "sqlite", "sqlite3":
|
||||
return SQLiteDriver{}, nil
|
||||
default:
|
||||
return nil, fmt.Errorf("Unknown driver: %s", name)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue