package org.stevewinfield.suja.idk.storage;

import org.stevewinfield.suja.idk.Bootloader;

public class HSQLDBStorageDriver implements StorageDriver {
    @Override
    public String getDriverName() {
        return "hsqldb";
    }

    @Override
    public String getDriverClass() {
        return "org.hsqldb.jdbc.JDBCDriver";
    }

    @Override
    public String getConnectionString() {
        return "jdbc:hsqldb:file:" + Bootloader.getSettings().getProperty("idk.hsqldb.path");
    }

    @Override
    public String getUsername() {
        return "sa";
    }

    @Override
    public String getPassword() {
        return "";
    }
}

@@ -477,16 +477,28 @@
 db.path%22
+, %22database%22
 );%0A    %7D
@@ -566,12 +566,67 @@
 urn 
-%22sa%22
+Bootloader.getSettings().getProperty(%22idk.hsqldb.user%22, %22%22)
 ;%0A  
@@ -692,19 +692,80 @@
   return
+ Bootloader.getSettings().getProperty(%22idk.hsqldb.password%22,
  %22%22
+)
 ;%0A    %7D%0A

Allow specifying username and password for HSQLDB