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 |
SQLITE_DATA_BLOB = 4 The data type for a |
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 |
SQLITE_DATA_NULL = 5 The data type for a |
Cmn
|
const Int |
SQLITE_DATA_TEXT = 3 The data type for a |
Cmn
|
Top-level functions summary
Nothing |
throwSQLiteException(errorCode: Int, errorMsg: String?) Throws a |
Cmn
|
Extension functions summary
Unit |
SQLiteConnection.execSQL(sql: String) 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 |
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.
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.