StandardSQLHelper

class StandardSQLHelper(    context: Context,     name: String,     factory: SQLiteDatabase.CursorFactory? = null,     version: Int = 1,     errorHandler: DatabaseErrorHandler? = null,     useSharedPreferencesForVersions: Boolean = false)

Constructors

Link copied to clipboard
fun StandardSQLHelper(    context: Context,     name: String,     factory: SQLiteDatabase.CursorFactory? = null,     version: Int = 1,     errorHandler: DatabaseErrorHandler? = null,     useSharedPreferencesForVersions: Boolean = false)

Functions

Link copied to clipboard
suspend fun <T> readableTransaction(block: suspend SQLiteDatabase.() -> T): T
Link copied to clipboard
suspend fun <T> writableTransaction(block: suspend SQLiteDatabase.() -> T): T

Properties

Link copied to clipboard
val sqlOpenHelper: SQLiteOpenHelper
Link copied to clipboard
val versionsRepo: VersionsRepo<SQLiteOpenHelper>

Extensions

Link copied to clipboard
fun <T> StandardSQLHelper.blockingReadableTransaction(block: SQLiteDatabase.() -> T): T
Link copied to clipboard
fun <T> StandardSQLHelper.blockingWritableTransaction(block: SQLiteDatabase.() -> T): T