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>

public class HikariSqlClient extends BaseSqlClient<com.zaxxer.hikari.HikariDataSource>
The SQL client with HikariCP
  • Constructor Details

    • HikariSqlClient

      public HikariSqlClient(Setting setting)
      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

      public Connection getConnection() throws SQLException
      Description copied from interface: SqlClient
      Get the connection
      Returns:
      the connection
      Throws:
      SQLException - if there is an SQL error