Added partial import and export functionality

This commit is contained in:
Mitchell McCaffrey
2021-02-13 21:51:31 +11:00
parent 6a8b977aea
commit 8440a8de42
7 changed files with 404 additions and 29 deletions

View File

@@ -385,8 +385,8 @@ function loadVersions(db) {
}
// Get the dexie database used in DatabaseContext
export function getDatabase(options) {
let db = new Dexie("OwlbearRodeoDB", options);
export function getDatabase(options, name="OwlbearRodeoDB") {
let db = new Dexie(name, options);
loadVersions(db);
return db;
}