use of io.prestosql.plugin.jdbc.BaseJdbcClient in project hetu-core by openlookeng.
the class TestDataSourceTableSplitManager method initSplitDatabase.
private void initSplitDatabase() throws SQLException {
String connectionUrl;
connectionUrl = "jdbc:h2:mem:test" + System.nanoTime() + ThreadLocalRandom.current().nextLong();
jdbcClient = new BaseJdbcClient(new BaseJdbcConfig(), "\"", new DriverConnectionFactory(new Driver(), connectionUrl, Optional.empty(), Optional.empty(), new Properties()));
connection = DriverManager.getConnection(connectionUrl);
}
Aggregations