Class HikariSqlClient
java.lang.Object
me.hsgamer.hscore.database.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
-
Method Summary
Modifier and TypeMethodDescriptionGet the connectioncom.zaxxer.hikari.HikariDataSource
Get the originalGet the settingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.hscore.database.client.sql.SqlClient
createBatchBuilder, createBatchBuilderSafe, createStatementBuilder, createStatementBuilderSafe
-
Constructor Details
-
HikariSqlClient
Create new SQL client- Parameters:
setting
- the setting
-
-
Method Details
-
getSetting
Description copied from interface:Client
Get the setting- Specified by:
getSetting
in interfaceClient<com.zaxxer.hikari.HikariDataSource>
- Returns:
- the setting
-
getOriginal
public com.zaxxer.hikari.HikariDataSource getOriginal()Description copied from interface:Client
Get the original- Specified by:
getOriginal
in interfaceClient<com.zaxxer.hikari.HikariDataSource>
- Returns:
- the original
-
getConnection
Description copied from interface:SqlClient
Get the connection- Specified by:
getConnection
in interfaceSqlClient<com.zaxxer.hikari.HikariDataSource>
- Returns:
- the connection
- Throws:
SQLException
- if there is an SQL error
-