RoomDatabase.QueryCallback

fun interface RoomDatabase.QueryCallback


Callback interface for when SQLite queries are executed.

Can be set using RoomDatabase.Builder.setQueryCallback.

Summary

Public functions

Unit
onQuery(sqlQuery: String, bindArgs: List<Any?>)

Called when a SQL query is executed.

Public functions

onQuery

Added in 2.3.0
fun onQuery(sqlQuery: String, bindArgs: List<Any?>): Unit

Called when a SQL query is executed.

Parameters
sqlQuery: String

The SQLite query statement.

bindArgs: List<Any?>

Arguments of the query if available, empty list otherwise.