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

Integrate PureeSQLiteStorage with androidx.sqlite #67

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

chibatching
Copy link
Contributor

Integrate PureeSQLiteStorage with AndroidX SQLite

This PR is just a proposal. If you can not accept, please feel free to close this.

Why

AndroidX provides SQLite support library. This library handles the framework's SQLite database well.
I think it is more reliable than using SQLiteOpenHelper directly.

Reference

I referenced implementation of AndroidX Room and JavaDoc of SupportSQLiteOpenHelper.
It calls getWritableDatabase every query execution instead of keeping a reference of the database instance.
Also, it has followed it in this implementation.

Copy link
Contributor

@k4zy k4zy left a comment

Choose a reason for hiding this comment

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

This changes would be great!
What do you think ? @nein37

@k4zy k4zy merged commit 1e42f11 into cookpad:master Jun 13, 2019
@chibatching chibatching deleted the integrate_androidx_sqlite branch June 13, 2019 02:52
@mataku mataku mentioned this pull request Nov 8, 2019
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