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

Use SupportSQLite instead of the framework version #907

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

inorichi
Copy link

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 😄

@@ -22,7 +24,7 @@ public void insertOne() {
final User user = putUserBlocking();

// why we created StorIOSQLite: nobody loves nulls
Copy link
Author

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 😅

Copy link
Collaborator

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(),
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hah 👍

Copy link
Collaborator

@nikitin-da nikitin-da left a 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!

@nikitin-da
Copy link
Collaborator

@artem-zinnatullin may we drop old SQLite support in v4?

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

Successfully merging this pull request may close these issues.

2 participants