Skip to content

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 😄

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 👍

.insertOrThrow(
.insert(
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

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