schemacrawler.spring.boot.ext.SchemaCrawlerConnectionProvider Maven / Gradle / Ivy
package schemacrawler.spring.boot.ext;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SchemaCrawlerConnectionProvider implements ConnectionProvider {
private static Logger LOG = LoggerFactory.getLogger(SchemaCrawlerConnectionProvider.class);
private DataSource dataSource;
public SchemaCrawlerConnectionProvider(DataSource dataSource){
this.dataSource = dataSource;
}
@Override
public Connection getConnection() throws SQLException {
LOG.debug("Get ");
return dataSource.getConnection();
}
}