Package dev.majek.hexnicks.storage
Class HikariManager
java.lang.Object
dev.majek.hexnicks.storage.HikariManager
Handles the plugin's MySQL connections.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Create the nickname table if it doesn't exist.static Connection
Get the current SQL connection.
-
Method Details
-
getConnection
Get the current SQL connection.- Returns:
- the sql connection
- Throws:
SQLException
- if getting the connection fails
-
createTable
Create the nickname table if it doesn't exist.- Throws:
SQLException
- if creating the table fails
-