From 5b93dd681de53b461049f24c8ae7552de63991ca Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:18:19 +0100 Subject: [PATCH] try uri=true --- cashu/core/db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cashu/core/db.py b/cashu/core/db.py index dc9dc212..691ffd3e 100644 --- a/cashu/core/db.py +++ b/cashu/core/db.py @@ -124,7 +124,9 @@ def __init__(self, db_name: str, db_location: str): logger.info(f"Creating database directory: {self.db_location}") os.makedirs(self.db_location) self.path = os.path.join(self.db_location, f"{self.name}.sqlite3") - database_uri = f"sqlite+aiosqlite:///{self.path}?check_same_thread=false" + database_uri = ( + f"sqlite+aiosqlite:///{self.path}?check_same_thread=false&uri=true" + ) self.type = SQLITE self.schema = self.name