aboutsummaryrefslogtreecommitdiff
path: root/src/db.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-02 00:42:40 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-02 00:42:40 +0100
commite1369ff7e8fc02116b9c4261036f0e42e3423cf4 (patch)
treec621067ebda8977a888bfed34b7bbecf64b3b0f0 /src/db.ts
parentaaf7e1338d6cdb1b4e01ad318938b3eaea2f922b (diff)
the giant refactoring: split wallet into multiple parts
Diffstat (limited to 'src/db.ts')
-rw-r--r--src/db.ts10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/db.ts b/src/db.ts
index e317b0aaf..ddf3771b7 100644
--- a/src/db.ts
+++ b/src/db.ts
@@ -1,5 +1,5 @@
import { Stores, WALLET_DB_VERSION } from "./dbTypes";
-import { Store, Index } from "./query";
+import { Store, Index } from "./util/query";
const DB_NAME = "taler";
@@ -21,9 +21,7 @@ export function openTalerDb(
req.onsuccess = e => {
req.result.onversionchange = (evt: IDBVersionChangeEvent) => {
console.log(
- `handling live db version change from ${evt.oldVersion} to ${
- evt.newVersion
- }`,
+ `handling live db version change from ${evt.oldVersion} to ${evt.newVersion}`,
);
req.result.close();
onVersionChange();
@@ -33,9 +31,7 @@ export function openTalerDb(
req.onupgradeneeded = e => {
const db = req.result;
console.log(
- `DB: upgrade needed: oldVersion=${e.oldVersion}, newVersion=${
- e.newVersion
- }`,
+ `DB: upgrade needed: oldVersion=${e.oldVersion}, newVersion=${e.newVersion}`,
);
switch (e.oldVersion) {
case 0: // DB does not exist yet