public interface HelperDataSource extends Terminable
EMPTY| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Gets a connection from the datasource.
|
com.zaxxer.hikari.HikariDataSource |
getHikari()
Gets the Hikari instance backing the datasource
|
static HelperDataSource |
usingHikari(DatabaseCredentials credentials) |
bindWith, close, closeAndReportException, closeSilently, isClosed@Nonnull static HelperDataSource usingHikari(@Nonnull DatabaseCredentials credentials)
@Nonnull com.zaxxer.hikari.HikariDataSource getHikari()
@Nonnull Connection getConnection() throws SQLException
The connection should be returned once it has been used.
SQLExceptionCopyright © 2018. All rights reserved.