mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Add cgo build constraint for sqlite support (#25)
Required to upgrade https://github.com/mattn/go-sqlite3 which does not compile correctly with missing cgo.
This commit is contained in:
parent
cc769e9605
commit
fbddb76b84
6 changed files with 30 additions and 10 deletions
|
|
@ -10,6 +10,10 @@ import (
|
|||
_ "github.com/go-sql-driver/mysql" // mysql driver for database/sql
|
||||
)
|
||||
|
||||
func init() {
|
||||
RegisterDriver(MySQLDriver{}, "mysql")
|
||||
}
|
||||
|
||||
// MySQLDriver provides top level database functions
|
||||
type MySQLDriver struct {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue