SupportSQLiteProgram

interface SupportSQLiteProgram : Closeable

Known direct subclasses

An interface to map the behavior of android.database.sqlite.SQLiteProgram.

Summary

Public functions

Unit
bindBlob(index: Int, value: ByteArray)

Bind a byte array value to this statement.

Unit
bindDouble(index: Int, value: Double)

Bind a double value to this statement.

Unit
bindLong(index: Int, value: Long)

Bind a long value to this statement.

Unit
bindNull(index: Int)

Bind a NULL value to this statement.

Unit
bindString(index: Int, value: String)

Bind a String value to this statement.

Unit

Clears all existing bindings.

Inherited functions

From java.io.Closeable

Public functions

bindBlob

Added in 2.0.0
fun bindBlob(index: Int, value: ByteArray): Unit

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

Parameters
index: Int

The 1-based index to the parameter to bind

value: ByteArray

The value to bind, must not be null

bindDouble

Added in 2.0.0
fun bindDouble(index: Int, value: Double): Unit

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

Parameters
index: Int

The 1-based index to the parameter to bind

value: Double

The value to bind

bindLong

Added in 2.0.0
fun bindLong(index: Int, value: Long): Unit

Bind a long value to this statement. The value remains bound until clearBindings is called. addToBindArgs

Parameters
index: Int

The 1-based index to the parameter to bind

value: Long

The value to bind

bindNull

Added in 2.0.0
fun bindNull(index: Int): Unit

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

Parameters
index: Int

The 1-based index to the parameter to bind null to

bindString

Added in 2.0.0
fun bindString(index: Int, value: String): Unit

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

Parameters
index: Int

The 1-based index to the parameter to bind

value: String

The value to bind, must not be null

clearBindings

Added in 2.0.0
fun clearBindings(): Unit

Clears all existing bindings. Unset bindings are treated as NULL.