VirtualTableColumnScope

Properties

Link copied to clipboard
abstract val nochange: Boolean

Returns true if and only if the call is during an UPDATE operation and the value of the column will not be modified by the UPDATE.

Functions

Link copied to clipboard
abstract fun setResult(value: Double)

Sets the 64-bit floating point value as the result. This function maps to sqlite3_result_double().

abstract fun setResult(value: Int)

Sets the 32-bit signed integer value as the result. This function maps to sqlite3_result_int().

abstract fun setResult(value: Long)

Sets the 64-bit signed integer value as the result. This function maps to sqlite3_result_int64().

abstract fun setResult(value: Nothing?)

Sets the result as null. This function maps to sqlite3_result_null().

abstract fun setResult(value: String)

Sets the text value as the UTF-8 encoded result. This function maps to sqlite3_result_text().

abstract fun setResult(value: Value)

Sets value as the result. This function maps to sqlite3_result_value().

abstract fun setResult(value: Any, type: String? = null)

Sets value as the result. This function maps to sqlite3_result_pointer().

abstract fun setResult(value: ByteArray, size: Int = value.size)

Sets the bytes buffer value as the result. This function maps to sqlite3_result_blob().

abstract fun setResult(value: Nothing?, size: Int)

Sets the result to be a buffer of the given size with all bytes set to zero. This function maps to sqlite3_result_zeroblob().

abstract fun setResult(value: Nothing?, size: ULong)

Sets the result to be a buffer of the given size with all bytes set to zero. This function maps to sqlite3_result_zeroblob64().

abstract fun setResult(value: Buffer, size: Long = value.byteSize, cleanup: (Buffer) -> Unit? = null)

Sets the bytes buffer value as the result. This function maps to sqlite3_result_blob64().

abstract fun setResult(value: Buffer, encoding: SqliteTextEncoding.ResultText, size: Long = value.byteSize, cleanup: (Buffer) -> Unit? = null)

Sets the text buffer value as the result. This function maps to sqlite3_result_text64().

Link copied to clipboard

Sets value result or sets null as the result if value is null.

Sets the bytes buffer value as the result or sets null as the result if value is null.

Sets the 64-bit floating point value as the result or sets null as the result if value is null.

Sets the 32-bit signed integer value as the result or sets null as the result if value is null.

Sets the 64-bit signed integer value as the result or sets null as the result if value is null.

Sets the text value as the UTF-8 encoded result or sets null as the result if value is null.