-
-
Notifications
You must be signed in to change notification settings - Fork 79
Description
I am trying to use the url "sqlite:///db/filename.db"(three forward slashes) to mean the file "/db/filename.db" in the config.yaml of a python bridge (googlechat). This doesn't work, and after a bit of debugging I realized that it should be written with four forward slashes (sqlite:////db/filename.db)
These two lines seem to handle this bit:
python/mautrix/util/async_db/aiosqlite.py
Lines 107 to 108 in 0b67487
if self._path.startswith("/"): | |
self._path = self._path[1:] |
I am wondering if this is a bug or expected and if the latter, maybe the documentation on the preceding lines should be updated/clarified.
This is on docker, btw. Since on docker the working directory is not writable, I would guess the most common use case would be to write an absolute path to a volume (i e /db/something.db).