Skip to content

//runtime/com.squareup.sqldelight.db/SqlDriver/executeQuery

executeQuery

[common]
Content
abstract fun executeQuery(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit? = null): SqlCursor
More info

Execute a SQL statement and return a SqlCursor that iterates the result set.

Parameters

common

identifier

An opaque, unique value that can be used to implement any driver-side caching of prepared statements. If identifier is null, a fresh statement is required.

sql

The SQL string to be executed.

parameters

The number of bindable parameters sql contains.

binders

A lambda which is called before execution to bind any parameters to the SQL statement.