Skip to content

make_reader(read_only=True) #319

@lemon24

Description

@lemon24

Allow making a read-only Reader. This is useful at least during debugging, to prevent accidentally changing an old database in any way (including migrations).

This should use the lowest-level mechanism available on the storage, e.g. ?mode=ro for SQLite; alas, URI filenames are required for this:

Traceback (most recent call last):
  ...
  File ".../reader/_storage.py", line 413, in __init__
    self.factory = LocalConnectionFactory(
  File ".../reader/_sqlite_utils.py", line 453, in __init__
    raise NotImplementedError("_is_private() does not work for uri=True")
NotImplementedError: _is_private() does not work for uri=True

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions