From 828e4ad3efd34df5e327cdcedaacab75ef2eff08 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 22 Aug 2023 08:55:33 +0200 Subject: [PATCH] wallet-core: use sqlite for in-memory DB --- packages/taler-wallet-core/src/host-impl.node.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }