bind

abstract fun bind(index: Int, value: Nothing?)(source)

Sets null as the value for the parameter at index. This function maps to sqlite3_bind_null().

Throws

if the bind operation fails.


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

Sets the value for the parameter at index to be a buffer of the given size with all bytes set to zero. This function maps to sqlite3_bind_zeroblob().

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: Nothing?, size: ULong)(source)

Sets the value for the parameter at index to be a buffer of the given size with all bytes set to zero. This function maps to sqlite3_bind_zeroblob64().

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: ByteArray, size: Int = value.size)(source)

Sets the bytes buffer value as the value for the parameter at index. This function maps to sqlite3_bind_blob().

Throws

if the bind operation fails.


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

Sets the bytes buffer value as the value for the parameter at index. This function maps to sqlite3_bind_blob64().

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

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: Int)(source)

Sets the 32-bit signed integer value as the value for the parameter at index. This function maps to sqlite3_bind_int().

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: Long)(source)

Sets the 64-bit signed integer value as the value for the parameter at index. This function maps to sqlite3_bind_int64().

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: Double)(source)

Sets the 64-bit floating point value as the value for the parameter at index. This function maps to sqlite3_bind_double().

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: String)(source)

Sets the text value as the UTF-8 encoded value for the parameter at index. This function maps to sqlite3_bind_text().

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: Buffer, encoding: SqliteTextEncoding.BindText, size: Long = value.byteSize, cleanup: (Buffer) -> Unit? = null)(source)

Sets the text buffer value as the value for the parameter at index. This function maps to sqlite3_bind_text64().

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

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: Value)(source)

Sets value as the value for the parameter at index. This function maps to sqlite3_bind_value().

The value can be a protected or unprotected SQLite value.

Throws

if the bind operation fails.


abstract fun bind(index: Int, value: Any, type: String? = null)(source)

Sets value as the value for the parameter at index. This function maps to sqlite3_bind_pointer().

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

Throws

if the bind operation fails.