2021-11-21 14:05:07 +01:00
|
|
|
package migrate
|
|
|
|
|
2022-10-15 21:54:11 +02:00
|
|
|
import "sync"
|
|
|
|
|
2021-11-21 14:05:07 +01:00
|
|
|
// Supported database dialects.
|
|
|
|
const (
|
2021-12-09 07:37:49 +01:00
|
|
|
MySQL = "mysql"
|
|
|
|
SQLite3 = "sqlite3"
|
2021-11-21 14:05:07 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
var Dialects = map[string]Migrations{
|
2021-12-09 07:37:49 +01:00
|
|
|
MySQL: DialectMySQL,
|
|
|
|
SQLite3: DialectSQLite3,
|
2021-11-21 14:05:07 +01:00
|
|
|
}
|
2022-10-15 21:54:11 +02:00
|
|
|
|
|
|
|
var once = map[string]*sync.Once{
|
|
|
|
MySQL: {},
|
|
|
|
SQLite3: {},
|
|
|
|
}
|