()
| 84 | } |
| 85 | |
| 86 | func createTestingMySQLDB() *DB { |
| 87 | db, e := OpenAndConnectDB(GetTestingMySQLURL()) |
| 88 | assertNoErr(e) |
| 89 | _, e = db.Exec("CREATE DATABASE IF NOT EXISTS sqlflow_models;") |
| 90 | assertNoErr(e) |
| 91 | assertNoErr(testdata.Popularize(db.DB, testdata.IrisSQL)) |
| 92 | assertNoErr(testdata.Popularize(db.DB, testdata.SanityCheckSQL)) |
| 93 | assertNoErr(testdata.Popularize(db.DB, testdata.ChurnSQL)) |
| 94 | assertNoErr(testdata.Popularize(db.DB, testdata.HousingSQL)) |
| 95 | return db |
| 96 | } |
| 97 | |
| 98 | // GetTestingHiveURL reutrns Hive connection URL |
| 99 | func GetTestingHiveURL() string { |
no test coverage detected