-
Notifications
You must be signed in to change notification settings - Fork 182
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 SupportSQLite instead of the framework version #907
base: master
Are you sure you want to change the base?
Conversation
@@ -22,7 +24,7 @@ public void insertOne() { | |||
final User user = putUserBlocking(); | |||
|
|||
// why we created StorIOSQLite: nobody loves nulls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is now outdated 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah 👍
insertQuery.table(), | ||
insertQuery.nullColumnHack(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As SupportSQLiteDatabase doesn't allow nullColumnHack, and we should remove it from InsertQuery too
@@ -22,7 +24,7 @@ public void insertOne() { | |||
final User user = putUserBlocking(); | |||
|
|||
// why we created StorIOSQLite: nobody loves nulls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, @inorichi thank you for request!
@artem-zinnatullin may we drop old SQLite support in v4? |
This PR replaces the framework SQLite version with the new SupportSQLite from AndroidX.
This new implementation allows to use more SQL implementations besides the framework one, like the sqlite-android database from requery, which was requested at #662.
All tests are passing and the sample app works, but I don't know if I missed something. Readme should be updated too to reflect the changes required to use the new approach with
FrameworkSQLiteOpenHelperFactory
.I guess this PR would be included in a 4.x release 😄