schemacrawler.spring.boot.ext.SchemaCrawlerConnectionProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-schemacrawler Show documentation
Show all versions of spring-boot-starter-schemacrawler Show documentation
Spring Boot Starter For Schemacrawler
The newest version!
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();
}
}