Search in sources :

Example 1 with BenchmarkSuiteDao

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;
}
Also used : TestingMySqlServer(com.facebook.presto.testing.mysql.TestingMySqlServer) BenchmarkSuiteDao(com.facebook.presto.benchmark.source.BenchmarkSuiteDao) Handle(org.jdbi.v3.core.Handle)

Aggregations

BenchmarkSuiteDao (com.facebook.presto.benchmark.source.BenchmarkSuiteDao)1 TestingMySqlServer (com.facebook.presto.testing.mysql.TestingMySqlServer)1 Handle (org.jdbi.v3.core.Handle)1