working on configuration
This commit is contained in:
@@ -127,10 +127,10 @@ public class Database {
|
||||
public static Database open() {
|
||||
if (singleton == null){
|
||||
Configuration config = Configuration.instance();
|
||||
String dbFile = config.dbLocation();
|
||||
var dbFile = config.dbFile();
|
||||
String url = "jdbc:sqlite:"+dbFile;
|
||||
LOG.debug("Opening {}",url);
|
||||
new File(dbFile).getParentFile().mkdirs();
|
||||
dbFile.getParentFile().mkdirs();
|
||||
try {
|
||||
singleton = new Database(DriverManager.getConnection(url)).assertTables();
|
||||
} catch (SQLException sqle) {
|
||||
|
||||
Reference in New Issue
Block a user