package Store; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class ConnectionHandler { String address; public static Connection connection; public ConnectionHandler(String address) { this.address = address; } public void connect() { try { connection = DriverManager.getConnection(this.address); // create tables if they don't exist Book.createTable(); User.createTable(); } catch (SQLException e) { System.err.println(e.getMessage()); } } // TODO: disconnect }