Connection connection = ds.getConnection(Transaction.AUTO_COMMIT);
connection.commit();
Statement statement = connection.createStatement();
statement.executeUpdate("DROP TABLE IF EXISTS " + cfg.getSchema() + "." + table );
connection.commit();
ds.dispose();
}
private long count(PostGisConfig cfg, String table) throws PostGisException, IOException, SQLException {
DataStore ds_ = PostGISUtils.createDatastore(cfg);
assertTrue(ds_ instanceof JDBCDataStore);