/** * Gets an in memory DB connection. Will load DB Driver if not already loaded. * * @return Connection to In Memory Database. */ public static Connection getMemoryConnection() { if (!isMapLoaded()) LoadSQLiteDriver(); try { return DriverManager.getConnection(dbMap.getConnectionString()); } catch (SQLException e) { throw new CannotLoadDatabaseMapDriverException("Error in DatabaseConfig, could not retrieve connection to in memory database.", e); } }