IreneKnapp / direct-sqlite

MIT License
35 stars 54 forks source link

read-only access #52

Closed mwotton closed 2 years ago

mwotton commented 10 years ago

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?

nurpax commented 10 years ago

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.

IreneKnapp commented 10 years ago

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