2. Basic Connection Management - Kev575/KevSQL GitHub Wiki

Create a connection

SQLConnection connection = KevSQL.createConnection("name_here");

Get a registered connection

SQLConnection connection = KevSQL.getConnection("name_here");

Check if a connection exists

boolean exists = KevSQL.isConnectionExisting("name_here");
// OR (but a bit complex)
boolean exists2 = KevSQL.getConnection("name_here") != null;

Terminate a connection if it's not reacting

Consider using KevSQL#removeConnection()

KevSQL.terminateConnection("name_here");

Remove a connection from the internal list

Warning: This ignores the connection state of the SQLConnection

KevSQL.removeConnection("name_here");