Package 

Class ReactDatabaseSupplier

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public class ReactDatabaseSupplier
    extends SQLiteOpenHelper
                        

    Database supplier of the database used by react native. This creates, opens and deletes the database as necessary.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String DATABASE_NAME
    • Method Summary

      Modifier and Type Method Description
      static ReactDatabaseSupplier getInstance(Context context)
      void onCreate(SQLiteDatabase db)
      void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
      synchronized SQLiteDatabase get() Create and/or open the database.
      synchronized void clearAndCloseDatabase()
      synchronized void setMaximumSize(long size) Sets the maximum size the database will grow to.
      static void deleteInstance()
      • Methods inherited from class android.database.sqlite.SQLiteOpenHelper

        close, getDatabaseName, getReadableDatabase, getWritableDatabase, onConfigure, onCreate, onDowngrade, onOpen, onUpgrade, setIdleConnectionTimeout, setLookasideConfig, setOpenParams, setWriteAheadLoggingEnabled
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait