Skip to content

Using a sqlite database fails #141

@jjguti

Description

@jjguti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions