use of com.amazonaws.athena.connectors.jdbc.connection.GenericJdbcConnectionFactory in project aws-athena-query-federation by awslabs.
the class JdbcTableUtils method getDbConnection.
/**
* Gets a JDBC DB connection.
* @return Connection object.
* @param databaseConnectionInfo
*/
protected Connection getDbConnection(DatabaseConnectionInfo databaseConnectionInfo) {
DatabaseConnectionConfig connectionConfig = getDbConfig();
JdbcConnectionFactory connectionFactory = new GenericJdbcConnectionFactory(connectionConfig, properties, databaseConnectionInfo);
return connectionFactory.getConnection(null);
}
Aggregations