RoomRawQuery



A query with an argument binding function.

See also
RawQuery

Summary

Public constructors

RoomRawQuery(sql: String, onBindStatement: (SQLiteStatement) -> Unit)
Cmn

Public functions

(SQLiteStatement) -> Unit
Cmn

Public properties

String

The SQL query.

Cmn

Public constructors

RoomRawQuery

RoomRawQuery(sql: String, onBindStatement: (SQLiteStatement) -> Unit = {})
Parameters
sql: String

The SQL query.

The query can have placeholders (?) to bind arguments.

onBindStatement: (SQLiteStatement) -> Unit = {}

The function that receives a SQLiteStatement and binds arguments.

Only bind*() calls should be invoked on the received statement.

Public functions

getBindingFunction

fun getBindingFunction(): (SQLiteStatement) -> Unit

Public properties

sql

val sql: String

The SQL query.

The query can have placeholders (?) to bind arguments.