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

make_reader(read_only=True) #319

Open
lemon24 opened this issue Aug 25, 2023 · 0 comments
Open

make_reader(read_only=True) #319

lemon24 opened this issue Aug 25, 2023 · 0 comments

Comments

@lemon24
Copy link
Owner

lemon24 commented Aug 25, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant