Package me.deecaad.core.database
Class HikariBased
java.lang.Object
me.deecaad.core.database.Database
me.deecaad.core.database.HikariBased
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.deecaad.core.database.Database
close, executeQuery, executeUpdate, getType, printResultSet
-
Field Details
-
dataSource
protected com.zaxxer.hikari.HikariDataSource dataSource
-
-
Constructor Details
-
HikariBased
-
-
Method Details
-
getConnection
Description copied from class:DatabaseAllows getting connections to the database. When using MySQL this fetches one connection from the pool. When using SQLite this creates new connection in most cases.- Specified by:
getConnectionin classDatabase- Returns:
- one connection to the database
- Throws:
SQLException
-
close
Description copied from class:DatabaseHas to be called on when server disables or plugin is reloaded- Specified by:
closein classDatabase- Throws:
SQLException
-
isClosed
public boolean isClosed()
-