androidx.sqlite.db

Classes

SimpleSQLiteQuery

A basic implementation of SupportSQLiteQuery which receives a query and its args and binds args based on the passed in Object type.

SupportSQLiteQueryBuilder

A simple query builder to create SQL SELECT queries.

Extension functions summary

For SupportSQLiteDatabase
T
SupportSQLiteDatabase.transaction(exclusive: Boolean = true, body: SupportSQLiteDatabase.() -> T)

Run body in a transaction marking it as successful if it completes without exception.

Extension functions

transaction

inline fun <T> SupportSQLiteDatabase.transaction(
    exclusive: Boolean = true,
    body: SupportSQLiteDatabase.() -> T
): T

Run body in a transaction marking it as successful if it completes without exception.

Parameters
exclusive: Boolean = true Run in EXCLUSIVE mode when true, IMMEDIATE mode otherwise.