Package-level declarations

Functions

Link copied to clipboard

Reads a boolean column by index from a 0 or 1 value.

Reads a boolean column by name from a 0 or 1 value.

Link copied to clipboard
fun Cursor.getLongOrThrow(columnName: String): Long

Reads a long column by name or throws if the column is missing.

Link copied to clipboard

Reads a string column by name or throws if the column is missing.

Link copied to clipboard
fun <R> ContentResolver.query(uri: Uri, columns: Array<String>, selection: String? = null, selectionArgs: Array<String>? = null, onCursor: (Cursor) -> R): R?

Queries a Uri, moves to the first row, and closes the cursor.