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

Constants summary

const Int

The data type for a BLOB value, i.e. binary data.

Cmn
const Int

The data type for a 64-bit IEEE floating point number.

Cmn
const Int

The data type for a 64-bit signed integer.

Cmn
const Int

The data type for a NULL value.

Cmn
const Int

The data type for a String.

Cmn

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

Constants

SQLITE_DATA_BLOB

const val SQLITE_DATA_BLOB = 4: Int

The data type for a BLOB value, i.e. binary data.

SQLITE_DATA_FLOAT

const val SQLITE_DATA_FLOAT = 2: Int

The data type for a 64-bit IEEE floating point number.

SQLITE_DATA_INTEGER

const val SQLITE_DATA_INTEGER = 1: Int

The data type for a 64-bit signed integer.

SQLITE_DATA_NULL

const val SQLITE_DATA_NULL = 5: Int

The data type for a NULL value.

SQLITE_DATA_TEXT

const val SQLITE_DATA_TEXT = 3: Int

The data type for a String.

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.