Skip to content

Commit

Permalink
[#676] feat(jdbc): Support jdbc operations in JDBC catalog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearvive authored and Clearvive committed Nov 17, 2023
1 parent b645cf9 commit 087e191
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void initialize(final DataSource dataSource, final JdbcExceptionConverter except

/**
* @param databaseName The name of the database to check.
* @param cascade If set to true, drops all the tables in the schema as well.
* @param cascade If set to true, drops all the tables in the database as well.
*/
void delete(String databaseName, boolean cascade);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@

import com.datastrato.gravitino.catalog.jdbc.config.JdbcConfig;
import com.datastrato.gravitino.exceptions.GravitinoRuntimeException;
import org.apache.commons.dbcp2.BasicDataSource;
import org.apache.commons.dbcp2.BasicDataSourceFactory;

import javax.sql.DataSource;
import java.sql.SQLException;
import java.util.Map;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
import org.apache.commons.dbcp2.BasicDataSourceFactory;

/**
* Utility class for creating a {@link DataSource} from a {@link JdbcConfig}. It is mainly
Expand Down Expand Up @@ -68,7 +69,7 @@ public static void closeDataSource(DataSource dataSource) {
assert dataSource instanceof BasicDataSource;
((BasicDataSource) dataSource).close();
} catch (SQLException ignore) {

// no op
}
}
}
Expand Down

0 comments on commit 087e191

Please sign in to comment.