sqldelight-runtime / com.squareup.sqldelight.db / SqlPreparedStatement

SqlPreparedStatement

interface SqlPreparedStatement

Represents a SQL statement that has been prepared by a driver to be executed.

This type is not thread safe unless otherwise specified by the driver emitting these.

Prepared statements should not be cached by client code. Drivers can implement caching by using the integer identifier passed to SqlDriver.execute or SqlDriver.executeQuery. Client code can pass the same identifier to that method to request that the prepared statement is cached.

Functions

bindBytes

abstract fun bindBytes(index: Int, value: ByteArray?): Unit

Bind value to the underlying statement at index.

bindDouble

abstract fun bindDouble(index: Int, value: Double?): Unit

Bind value to the underlying statement at index.

bindLong

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

Bind value to the underlying statement at index.

bindString

abstract fun bindString(index: Int, value: String?): Unit

Bind value to the underlying statement at index.

Inheritors

StatementParameterInterceptor

class StatementParameterInterceptor : SqlPreparedStatement