diff options
Diffstat (limited to 'packages/taler-wallet-core')
-rw-r--r-- | packages/taler-wallet-core/src/host-impl.node.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/host-impl.node.ts b/packages/taler-wallet-core/src/host-impl.node.ts index a6dae58a1..33162ec50 100644 --- a/packages/taler-wallet-core/src/host-impl.node.ts +++ b/packages/taler-wallet-core/src/host-impl.node.ts @@ -108,10 +108,13 @@ async function makeSqliteDb( filename: args.persistentStoragePath ?? ":memory:", }); myBackend.enableTracing = false; + if (process.env.TALER_WALLET_DBSTATS) { + myBackend.trackStats = true; + } const myBridgeIdbFactory = new BridgeIDBFactory(myBackend); return { getStats() { - throw Error("not implemented"); + return myBackend.accessStats; }, idbFactory: myBridgeIdbFactory, }; |