bindBlob

abstract fun bindBlob(index: Int, value: ByteArray)

Bind a byte array value to this statement. The value remains bound until clearBindings is called.

Parameters

index

The 1-based index to the parameter to bind.

value

The value to bind.


abstract fun bindBlob(name: String, value: ByteArray)

Bind a byte array value to this statement by parameter name. The value remains bound until clearBindings is called.

Named parameters in SQLite can use the following syntax: :name, @name, or $name.

Parameters

name

The name of the parameter to bind (including the prefix character like :, @, or $).

value

The value to bind.

Throws

if the parameter name is not found.