[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 04/04: wallet-core: use sqlite for in-memory DB
From: |
gnunet |
Subject: |
[taler-wallet-core] 04/04: wallet-core: use sqlite for in-memory DB |
Date: |
Tue, 22 Aug 2023 08:55:40 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 828e4ad3efd34df5e327cdcedaacab75ef2eff08
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Aug 22 08:55:33 2023 +0200
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);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.