Skip to content

Commit

Permalink
try uri=true
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Nov 5, 2024
1 parent 67bcbc1 commit 5b93dd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cashu/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b93dd6

Please sign in to comment.