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

Support execPerConnectionSQL #135

Open
R4md4c opened this issue Nov 3, 2020 · 1 comment
Open

Support execPerConnectionSQL #135

R4md4c opened this issue Nov 3, 2020 · 1 comment

Comments

@R4md4c
Copy link

R4md4c commented Nov 3, 2020

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.

@R4md4c
Copy link
Author

R4md4c commented Nov 12, 2020

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/

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

1 participant