use of com.facebook.presto.resourceGroups.db.H2DaoProvider in project presto by prestodb.
the class TestQueues method getDao.
private static H2ResourceGroupsDao getDao(String url) {
DbResourceGroupConfig dbResourceGroupConfig = new DbResourceGroupConfig().setConfigDbUrl(url);
H2ResourceGroupsDao dao = new H2DaoProvider(dbResourceGroupConfig).get();
dao.createResourceGroupsTable();
dao.createSelectorsTable();
dao.createResourceGroupsGlobalPropertiesTable();
return dao;
}
Aggregations