SQLiteOpenHelper

The SQLiteOpenHelper class contains a useful set of APIs for managing your database. When you use this class to obtain references to your database, the system performs the potentially long-running operations of creating and updating the database lazily and only when needed, not during application startup. All you need to do is call writableDatabase().

Since

v0.1.0.

Constructors

Link copied to clipboard
constructor(context: Context, configuration: ISQLiteOpenHelper.Configuration, version: Int, openParams: SQLiteOpenParams = SQLiteOpenParams())

Properties

Link copied to clipboard
open override val databaseName: String
Link copied to clipboard
open override val writableDatabase: SQLiteDatabase

Create and/or open a database that will be used for reading and writing. The first time this is called, the database will be opened and onCreate(SQLiteDatabase) and onUpgrade(SQLiteDatabase, int, int) or onDowngrade(SQLiteDatabase) can be called and each inside a transaction. If the transaction succeeds onOpen(SQLiteDatabase) is called.

Functions

Link copied to clipboard
open override fun close()