abstract class Query<out RowType : Any>
A listenable, typed query generated by SQLDelight.
RowType - the type that this query can map it's result set to.
interface Listener
An interface for listening to changes in the result set of a query. |
Query(queries: MutableList<Query<*>>, mapper: (SqlCursor) -> RowType)
A listenable, typed query generated by SQLDelight. |
val mapper: (SqlCursor) -> RowType
The mapper this Query was created with, which can convert a row in the SQL cursor returned by execute to RowType. |
fun addListener(listener: Listener): Unit
Register a listener to be notified of future changes in the result set. |
|
abstract fun execute(): SqlCursor
Execute the underlying statement. |
|
fun executeAsList(): List<RowType> |
|
fun executeAsOne(): RowType |
|
fun executeAsOneOrNull(): RowType? |
|
fun notifyDataChanged(): Unit
Notify listeners that their current result set is staled. |
|
fun removeListener(listener: Listener): Unit
Remove a listener to no longer be notified of future changes in the result set. |