All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schemacrawler.spring.boot.ext.SchemaCrawlerConnectionProvider Maven / Gradle / Ivy

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();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy