setResult

abstract fun setResult(value: Nothing?)(source)

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


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

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)(source)

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: ByteArray, size: Int = value.size)(source)

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


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

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

When SQLite no longer needs the value, it will invoke cleanup.


abstract fun setResult(value: Int)(source)

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


abstract fun setResult(value: Long)(source)

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


abstract fun setResult(value: Double)(source)

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


abstract fun setResult(value: String)(source)

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


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

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

When SQLite no longer needs the value, it will invoke cleanup.


abstract fun setResult(value: Value)(source)

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

The value can be a protected or unprotected SQLite value.


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

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

If value implements AutoCloseable then AutoCloseable.close is invoked on value when SQLite finalize it.