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:
- Adding the
SQLITE_OPEN_READONLY flag.1
- 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
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:
SQLITE_OPEN_READONLYflag.1file:/path/to/db.sqlite), to which the user can then add amode=roquery parameter so the given example would becomefile:/path/to/db.sqlite?mode=ro.2Footnotes
https://sqlite.org/c3ref/open.html ↩
https://sqlite.org/uri.html ↩