Class HikariSqlClient
java.lang.Object
io.github.projectunified.craftdatabase.client.sql.hikari.HikariSqlClient
- All Implemented Interfaces:
Client<com.zaxxer.hikari.HikariDataSource>,SqlClient<com.zaxxer.hikari.HikariDataSource>
public class HikariSqlClient
extends Object
implements SqlClient<com.zaxxer.hikari.HikariDataSource>
The SQL client with HikariCP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connectioncom.zaxxer.hikari.HikariDataSourceGet the originalGet the settingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.projectunified.craftdatabase.client.sql.SqlClient
createBatchBuilder, createBatchBuilderUnsafe, createStatementBuilder, createStatementBuilderUnsafe
-
Constructor Details
-
HikariSqlClient
Create new SQL client- Parameters:
setting- the setting
-
-
Method Details
-
getSetting
Description copied from interface:ClientGet the setting- Specified by:
getSettingin interfaceClient<com.zaxxer.hikari.HikariDataSource>- Returns:
- the setting
-
getOriginal
public com.zaxxer.hikari.HikariDataSource getOriginal()Description copied from interface:ClientGet the original- Specified by:
getOriginalin interfaceClient<com.zaxxer.hikari.HikariDataSource>- Returns:
- the original
-
getConnection
Description copied from interface:SqlClientGet the connection- Specified by:
getConnectionin interfaceSqlClient<com.zaxxer.hikari.HikariDataSource>- Returns:
- the connection
- Throws:
SQLException- if there is an SQL error
-