add drivers

pull/123/head
1vn 2018-11-13 11:04:27 -05:00
parent e62f9850d3
commit cd715b596a
4 changed files with 26 additions and 0 deletions

4
.gitignore vendored
View File

@ -8,3 +8,7 @@ custom-goose
go.db
goose
sql.db
# don't ignore goose dir
!goose/

View File

@ -0,0 +1,8 @@
// +build !not_mysql
package main
import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/ziutek/mymysql/godrv"
)

7
cmd/goose/driver_psql.go Normal file
View File

@ -0,0 +1,7 @@
// +build !not_pq
package main
import (
_ "github.com/lib/pq"
)

View File

@ -0,0 +1,7 @@
// +build !not_sqlite
package main
import (
_ "github.com/mattn/go-sqlite3"
)