sqlite-android
sqlite-android copied to clipboard
Support execPerConnectionSQL
Recently API 30 has introduced a new API called execPerConnectionSQL, it allows clients to execute PRAGMA
statements per connection.
It would be nice if Requery could introduce this API that can work on Pre API 30 devices.
My usecase is that I'd like to stop auto-checkpointing on the DB by performing PRAGMA wal_autocheckpoint=0
, however as far as I learned, this needs to be executed per connection, rather than at the start of opening of the DB.
SupportSQLiteDatabase
is going to get this method soon for other non-framework bindings like Requery to implement.
https://android-review.googlesource.com/c/platform/frameworks/support/+/1491164/