bindLong

abstract fun bindLong(index: Int, value: Long)

Bind a long 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 bindLong(name: String, value: Long)

Bind a long 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.