diff options
author | Florian Dold <florian@dold.me> | 2023-08-22 08:55:33 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-08-22 08:55:33 +0200 |
commit | 828e4ad3efd34df5e327cdcedaacab75ef2eff08 (patch) | |
tree | 3e52308878d3cbb32327dd4182b84a4dcc4fcd96 /packages/taler-wallet-core/src | |
parent | a748ebd053a09dcbabbb70fbc719206d9fd75c19 (diff) | |
download | wallet-core-828e4ad3efd34df5e327cdcedaacab75ef2eff08.tar.xz |
wallet-core: use sqlite for in-memory DB
Diffstat (limited to 'packages/taler-wallet-core/src')
-rw-r--r-- | packages/taler-wallet-core/src/host-impl.node.ts | 4 |
1 files changed, 3 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 ceda7243f..6a4f21d79 100644 --- a/packages/taler-wallet-core/src/host-impl.node.ts +++ b/packages/taler-wallet-core/src/host-impl.node.ts @@ -148,9 +148,11 @@ export async function createNativeWalletHost2( let dbResp: MakeDbResult; - if (!args.persistentStoragePath || args.persistentStoragePath.endsWith(".json")) { + if (args.persistentStoragePath &&args.persistentStoragePath.endsWith(".json")) { + logger.info("using legacy file-based DB backend"); dbResp = await makeFileDb(args); } else { + logger.info("using sqlite3 DB backend"); dbResp = await makeSqliteDb(args); } |