-
Notifications
You must be signed in to change notification settings - Fork 77
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
Use sqlite3_open_v2 to support only read mode #30
Comments
@mmzeeman thoughts ? I am definitely not very suited to do this job... I don't have much experience with erlang and definitely with writing bif module... |
This is not very difficult to do. The thing is that I currently I'm busy with: https://github.com/zotonic/zotonic/wiki/Improving-zotonic's-throughput PR's are welcome though. |
Ok, I will try my best then :) Really unsure about the result though... |
👍 Erlang probably isn't as scary as you think it is. . :-) |
esqlite is compiled with the SQLITE_USE_URI flag. This makes it possible to open a database in readonly mode. See https://sqlite.org/uri.html for details. |
It could be useful to use
sqlite3_open_v2
, instead ofsqlite_open
.In this way it will be possible to have more control in which way the database is used.
https://www.sqlite.org/c3ref/open.html
The text was updated successfully, but these errors were encountered: