import com.zaxxer.hikari.HikariDataSource;
import java.sql.Connection;
-import java.sql.SQLException;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
return super.selectFirst(selectSql, new DbSessionConnectionSupplier(dbSession));
}
- @Deprecated
- public MyBatis myBatis() {
- return db.getMyBatis();
- }
-
- @Deprecated
- public Connection openConnection() throws SQLException {
- return getConnection();
- }
-
- private Connection getConnection() throws SQLException {
- return db.getDatabase().getDataSource().getConnection();
- }
-
- @Deprecated
- public Database database() {
- return db.getDatabase();
- }
-
public String getUrl() {
return ((HikariDataSource) db.getDatabase().getDataSource()).getJdbcUrl();
}