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

Read-only connections possible? #12

Open
harryvederci opened this issue Jan 30, 2022 · 0 comments
Open

Read-only connections possible? #12

harryvederci opened this issue Jan 30, 2022 · 0 comments

Comments

@harryvederci
Copy link
Contributor

Is it currently possible to create a read-only connection to a sqlite DB file?

I have zero experience with the C programming language, but from what I understand it should be possible by either:

  1. Adding the SQLITE_OPEN_READONLY flag.1
  2. Supporting uri filenames (i.e. file:/path/to/db.sqlite), to which the user can then add a mode=ro query parameter so the given example would become file:/path/to/db.sqlite?mode=ro.2

Footnotes

  1. https://sqlite.org/c3ref/open.html

  2. https://sqlite.org/uri.html

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

No branches or pull requests

1 participant