public class ReactDatabaseSupplier
extends android.database.sqlite.SQLiteOpenHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATABASE_NAME |
Modifier and Type | Method and Description |
---|---|
void |
clearAndCloseDatabase() |
static void |
deleteInstance() |
android.database.sqlite.SQLiteDatabase |
get()
Create and/or open the database.
|
static ReactDatabaseSupplier |
getInstance(android.content.Context context) |
void |
onCreate(android.database.sqlite.SQLiteDatabase db) |
void |
onUpgrade(android.database.sqlite.SQLiteDatabase db,
int oldVersion,
int newVersion) |
void |
setMaximumSize(long size)
Sets the maximum size the database will grow to.
|
public static final java.lang.String DATABASE_NAME
public static ReactDatabaseSupplier getInstance(android.content.Context context)
public void onCreate(android.database.sqlite.SQLiteDatabase db)
onCreate
in class android.database.sqlite.SQLiteOpenHelper
public void onUpgrade(android.database.sqlite.SQLiteDatabase db, int oldVersion, int newVersion)
onUpgrade
in class android.database.sqlite.SQLiteOpenHelper
public android.database.sqlite.SQLiteDatabase get()
public void clearAndCloseDatabase() throws java.lang.RuntimeException
java.lang.RuntimeException
public void setMaximumSize(long size)
public static void deleteInstance()