Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a sqlite database fails #141

Open
jjguti opened this issue Apr 4, 2023 · 0 comments
Open

Using a sqlite database fails #141

jjguti opened this issue Apr 4, 2023 · 0 comments

Comments

@jjguti
Copy link

jjguti commented Apr 4, 2023

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:

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant