Class HikariSqlClient
java.lang.Object
me.hsgamer.hscore.database.BaseClient<T>
me.hsgamer.hscore.database.client.sql.BaseSqlClient<com.zaxxer.hikari.HikariDataSource>
me.hsgamer.hscore.database.client.sql.hikari.HikariSqlClient
- All Implemented Interfaces:
Client<com.zaxxer.hikari.HikariDataSource>
,SqlClient<com.zaxxer.hikari.HikariDataSource>
The SQL client with HikariCP
-
Field Summary
Fields inherited from class me.hsgamer.hscore.database.BaseClient
setting
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the connectioncom.zaxxer.hikari.HikariDataSource
Get the originalMethods inherited from class me.hsgamer.hscore.database.BaseClient
getSetting
Methods 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
getSetting
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
-
getOriginal
public com.zaxxer.hikari.HikariDataSource getOriginal()Description copied from interface:Client
Get the original- Returns:
- the original
-
getConnection
Description copied from interface:SqlClient
Get the connection- Returns:
- the connection
- Throws:
SQLException
- if there is an SQL error
-