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

Use sqlite3_open_v2 to support only read mode #30

Closed
siscia opened this issue Oct 28, 2015 · 5 comments
Closed

Use sqlite3_open_v2 to support only read mode #30

siscia opened this issue Oct 28, 2015 · 5 comments

Comments

@siscia
Copy link

siscia commented Oct 28, 2015

It could be useful to use sqlite3_open_v2, instead of sqlite_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

@siscia
Copy link
Author

siscia commented Oct 31, 2015

@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...

@mmzeeman
Copy link
Owner

mmzeeman commented Nov 1, 2015

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.

@siscia
Copy link
Author

siscia commented Nov 1, 2015

Ok, I will try my best then :)

Really unsure about the result though...

@mmzeeman
Copy link
Owner

mmzeeman commented Nov 1, 2015

👍 Erlang probably isn't as scary as you think it is. . :-)

@mmzeeman
Copy link
Owner

mmzeeman commented Jan 1, 2022

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.

@mmzeeman mmzeeman closed this as completed Jan 1, 2022
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

2 participants