storage/sql: allow specifying sql flavor specific migrations

Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
This commit is contained in:
Nandor Kracser
2020-02-21 12:13:38 +01:00
parent 1160649c31
commit 80749ffd3f
4 changed files with 28 additions and 9 deletions

View File

@@ -130,7 +130,7 @@ func (c *conn) translateArgs(args []interface{}) []interface{} {
// conn is the main database connection.
type conn struct {
db *sql.DB
flavor flavor
flavor *flavor
logger log.Logger
alreadyExistsCheck func(err error) bool
}