IreneKnapp/direct-sqlite

read-only access

Closed this issue · 2 comments

I might have just missed how to do this, but I'd like to open databases in a read-only manner - seems like we'd need to use sqlite3_open_v2, to pass extra flags?

Yep, would need to add a new open binding c_sqlite3_open_v2 which would take a list of flags as input and expose that from Database.SQLite3.Direct. We can't change the current Database.SQLite3.Direct.open as that would break backwards compatibility.

For the record, not that it's my say anymore (great feeling, actually), but of course we should do this.