//selekt-android/com.bloomberg.selekt.android/SQLiteOpenHelper
SQLiteOpenHelper
[androidJvm]\ class SQLiteOpenHelper : ISQLiteOpenHelper
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
SQLiteOpenHelper | [androidJvm] constructor(context: Context, configuration: ISQLiteOpenHelper.Configuration, version: Int, openParams: SQLiteOpenParams = SQLiteOpenParams()) |
Properties
Name | Summary |
---|---|
databaseName | [androidJvm] open override val databaseName: String |
writableDatabase | [androidJvm] 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
Name | Summary |
---|---|
close | [androidJvm] open override fun close() |