-
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
Add to StorIO.LowLevel getter for underlying sqLiteOpenHelper #706
Conversation
Codecov Report@@ Coverage Diff @@
## master #706 +/- ##
==========================================
+ Coverage 96.05% 96.05% +<.01%
==========================================
Files 87 87
Lines 2459 2460 +1
Branches 329 267 -62
==========================================
+ Hits 2362 2363 +1
Misses 68 68
Partials 29 29
Continue to review full report at Codecov.
|
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.
Few small changes, otherwise LGTM!
@@ -329,6 +330,21 @@ | |||
* how to use this and when transactions are committed and rolled back. | |||
*/ | |||
public abstract void endTransaction(); | |||
|
|||
/** | |||
* Returns {@link SQLiteOpenHelper} for the direct access to underlined database. |
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.
underlined -> underlying
|
||
/** | ||
* Returns {@link SQLiteOpenHelper} for the direct access to underlined database. | ||
* It can be used in cases when {@link StorIOSQLite} support doesn't provided. |
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.
when {@link StorIOSQLite} APIs are not enough.
Sounds better to me :)
* Notice: Database changes through the direct access | ||
* to the {@link SQLiteOpenHelper} will not trigger notifications. | ||
* If it possible you should use {@link StorIOSQLite} methods instead | ||
* or call {@link #notifyAboutChanges(Changes)}. |
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.
or call … manually.
@NonNull | ||
@Override | ||
public SQLiteOpenHelper sqliteOpenHelper() { | ||
// doesn't required in design test |
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.
Not required in design test.
@@ -69,6 +69,15 @@ public void nullSQLiteOpenHelper() { | |||
} | |||
|
|||
@Test | |||
public void lowLevelReturnsSameInstanceOfSQLiteOpenHelper() { |
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.
👍
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.
👍
@geralt-encore PTAL, please) |
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.
Looks good!
Part of #704