Class HikariManager

java.lang.Object
dev.majek.hexnicks.storage.HikariManager

public class HikariManager extends Object
Handles the plugin's MySQL connections.
  • Method Details

    • getConnection

      public static Connection getConnection() throws SQLException
      Get the current SQL connection.
      Returns:
      the sql connection
      Throws:
      SQLException - if getting the connection fails
    • createTable

      public static void createTable() throws SQLException
      Create the nickname table if it doesn't exist.
      Throws:
      SQLException - if creating the table fails