Row

interface Row(source)

Exposes the API to extract values from an SQLite row.

SQLite may perform an implicit type conversion to match the requested value type. If conversion is not feasible then null is returned.

Properties

Link copied to clipboard
abstract val dataCount: Int

Returns the number of column in the current row of the result set.

Functions

Link copied to clipboard
abstract fun getBlob(index: Int): ByteArray?

Returns the value of the column at index as a ByteArray or null in the value cannot be converted to a ByteArray.

Link copied to clipboard
abstract fun getBuffer(index: Int): ReadableBuffer?

Returns the value of the column at index as a ReadableBuffer or null in the value cannot be converted to a ReadableBuffer.

Link copied to clipboard
abstract fun getBytes(index: Int): Int

Returns the size of the column at index in bytes.

Link copied to clipboard
abstract fun getColumnName(index: Int): String?

Returns the name of the column at index as it was assigned in the result set.

Link copied to clipboard
abstract fun getColumnOriginName(index: Int): String?

Returns the name of the column at index.

Link copied to clipboard
abstract fun getDatabaseName(index: Int): String?

Returns the name of the database for the column at index.

Link copied to clipboard
abstract fun getDeclaredType(index: Int): String?

Returns the declared type of the value at index.

Link copied to clipboard
abstract fun getDouble(index: Int): Double

Returns the value of the column at index as a Double.

Link copied to clipboard
abstract fun getInt(index: Int): Int

Returns the value of the column at index as an Int.

Link copied to clipboard
abstract fun getLong(index: Int): Long

Returns the value of the column at index as a Long.

Link copied to clipboard
abstract fun getString(index: Int): String?

Returns the value of the column at index as a String or null in the value cannot be converted to a String.

Link copied to clipboard
abstract fun getTableName(index: Int): String?

Returns the name of the table for the column at index.

Link copied to clipboard
abstract fun getType(index: Int): SqliteDataType

Returns the default data type of the value at index.

Link copied to clipboard
abstract fun getValue(index: Int): UnprotectedValue?

Returns the value of the column at index as an UnprotectedValue or null in the value cannot be converted to a ByteArray.