use of com.facebook.presto.benchmark.source.BenchmarkSuiteDao in project presto by prestodb.
the class BenchmarkTestUtil method setupMySql.
public static TestingMySqlServer setupMySql() throws Exception {
TestingMySqlServer mySqlServer = new TestingMySqlServer("testuser", "testpass", ImmutableList.of(XDB));
Handle handle = getJdbi(mySqlServer).open();
BenchmarkSuiteDao benchmarkDao = handle.attach(BenchmarkSuiteDao.class);
benchmarkDao.createBenchmarkSuitesTable("benchmark_suites");
benchmarkDao.createBenchmarkQueriesTable("benchmark_queries");
return mySqlServer;
}
Aggregations