2019-02-24 21:30:53 +00:00
|
|
|
package msql
|
|
|
|
|
|
|
|
import (
|
|
|
|
. "testing"
|
|
|
|
|
|
|
|
"github.com/mediocregopher/mediocre-go-lib/mtest"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestMySQL(t *T) {
|
2019-06-23 18:55:55 +00:00
|
|
|
cmp := mtest.Component()
|
|
|
|
sql := InstMySQL(cmp, "test")
|
|
|
|
mtest.Run(cmp, t, func() {
|
2019-02-24 21:30:53 +00:00
|
|
|
_, err := sql.Exec("CREATE TABLE IF NOT EXISTS msql_test (id INT);")
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|