Add wrapper class for async storage
Reviewed By: wsanville Differential Revision: D3654554 fbshipit-source-id: bc21da4b5c46228136cc80592f84206d2deb541e
This commit is contained in:
parent
805d06087b
commit
4b6af5fa63
|
@ -31,7 +31,7 @@ import static com.facebook.react.modules.storage.ReactDatabaseSupplier.VALUE_COL
|
|||
/**
|
||||
* Helper for database operations.
|
||||
*/
|
||||
/* package */ class AsyncLocalStorageUtil {
|
||||
public class AsyncLocalStorageUtil {
|
||||
|
||||
/**
|
||||
* Build the String required for an SQL select statement:
|
||||
|
@ -60,7 +60,7 @@ import static com.facebook.react.modules.storage.ReactDatabaseSupplier.VALUE_COL
|
|||
/**
|
||||
* Returns the value of the given key, or null if not found.
|
||||
*/
|
||||
/* package */ static @Nullable String getItemImpl(SQLiteDatabase db, String key) {
|
||||
public static @Nullable String getItemImpl(SQLiteDatabase db, String key) {
|
||||
String[] columns = {VALUE_COLUMN};
|
||||
String[] selectionArgs = {key};
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ public class ReactDatabaseSupplier extends SQLiteOpenHelper {
|
|||
/**
|
||||
* Create and/or open the database.
|
||||
*/
|
||||
/* package */ synchronized SQLiteDatabase get() {
|
||||
public synchronized SQLiteDatabase get() {
|
||||
ensureDatabase();
|
||||
return mDb;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue