androidx.sqlite


Interfaces

SQLiteConnection

SQLite connection definition.

Cmn
SQLiteDriver

An interface to open database connections.

Cmn
SQLiteStatement

SQLite statement definition.

Cmn

Exceptions

SQLiteException

An exception that indicates that something has gone wrong and a error code was produced.

Cmn
android
N

Type aliases

SQLiteException
android

Top-level functions summary

Nothing
throwSQLiteException(errorCode: Int, errorMsg: String?)

Throws a SQLiteException with its message formed by the given errorCode amd errorMsg.

Cmn

Extension functions summary

Unit

Executes a single SQL statement that returns no values.

Cmn
inline R
<R : Any?> SQLiteStatement.use(block: (SQLiteStatement) -> R)

Use the receiver statement within the block and closes it once it is done.

Cmn

Top-level functions

throwSQLiteException

fun throwSQLiteException(errorCode: Int, errorMsg: String?): Nothing

Throws a SQLiteException with its message formed by the given errorCode amd errorMsg.

Extension functions

execSQL

fun SQLiteConnection.execSQL(sql: String): Unit

Executes a single SQL statement that returns no values.

use

inline fun <R : Any?> SQLiteStatement.use(block: (SQLiteStatement) -> R): R

Use the receiver statement within the block and closes it once it is done.