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

Sets the result to value, using SQLite's own convention for booleans, 1 for true and 0 for false, since SQLite has no dedicated boolean storage class.

Convenience overload of resultBoolean that returns null when value is null.

Link copied to clipboard
abstract fun resultBuffer(value: Buffer, size: Long = value.byteSize, cleanup: (Buffer) -> Unit? = null): Result

Sets the bytes buffer value as the result.

Link copied to clipboard
fun ResultScope.resultBuffer(value: Buffer?, size: Long = value?.byteSize ?: 0L, cleanup: (Buffer) -> Unit? = null): Result

Convenience overload of resultBuffer that returns null when value is null.

Link copied to clipboard
abstract fun resultByteArray(value: ByteArray, size: Int = value.size): Result

Sets the bytes buffer value as the result.

Link copied to clipboard

Convenience overload of resultByteArray that returns null when value is null.

Link copied to clipboard
abstract fun resultDouble(value: Double): Result

Sets the 64-bit floating point value as the result.

Link copied to clipboard

Convenience overload of resultDouble that returns null when value is null.

Link copied to clipboard
abstract fun resultInt(value: Int): Result

Sets the 32-bit signed integer value as the result.

Link copied to clipboard

Convenience overload of resultInt that returns null when value is null.

Link copied to clipboard
abstract fun resultLong(value: Long): Result

Sets the 64-bit signed integer value as the result.

Link copied to clipboard

Convenience overload of resultLong that returns null when value is null.

Link copied to clipboard
abstract fun resultNull(): Result

Sets the result as null.

Link copied to clipboard
abstract fun resultPointer(value: Any, type: String? = null): Result

Sets value as the result.

Link copied to clipboard
fun ResultScope.resultPointer(value: Any?, type: String?): Result

Convenience overload of resultPointer that returns null when value is null.

Link copied to clipboard
abstract fun resultString(value: String): Result

Sets the text value as the UTF-8 encoded result.

Link copied to clipboard

Convenience overload of resultString that returns null when value is null.

Link copied to clipboard
abstract fun resultText(value: Buffer, encoding: SqliteTextEncoding.ResultText, size: Long = value.byteSize, cleanup: (Buffer) -> Unit? = null): Result

Sets the text buffer value, interpreted using encoding, as the result.

Link copied to clipboard
fun ResultScope.resultText(value: Buffer?, encoding: SqliteTextEncoding.ResultText, size: Long = value?.byteSize ?: 0L, cleanup: (Buffer) -> Unit? = null): Result

Convenience overload of resultText that returns null when value is null.

Link copied to clipboard
abstract fun resultValue(value: Value): Result

Sets value as the result. value can be a protected or unprotected SQLite value.

Link copied to clipboard

Convenience overload of resultValue that returns null when value is null.

Link copied to clipboard
abstract fun resultZeroBlob(size: Int): Result

Sets the result to be a buffer of size bytes, all set to zero.

abstract fun resultZeroBlob(size: Long): Result

Overload of resultZeroBlob for sizes larger than Int.MAX_VALUE.