OrderByRouter

Properties

Link copied to clipboard
abstract var parameters: Parameters?

Returns a copies of the current parameters.

Functions

Link copied to clipboard

Adds a change listener for the changes that occur in the query results.

Adds a change listener for the changes that occur in the query results with a CoroutineContext that will be used to launch coroutines the listener will be called on. Coroutines will be launched in a CoroutineScope that is canceled when the listener is removed.

Adds a change listener for the changes that occur in the query results with a CoroutineScope that will be used to launch coroutines the listener will be called on. The listener is removed when the scope is canceled.

Link copied to clipboard
abstract fun execute(): ResultSet

Executes the query. The returning a result set that enumerates result rows one at a time. You can run the query any number of times, and you can even have multiple ResultSet active at once.

Link copied to clipboard
abstract fun explain(): String

Returns a string describing the implementation of the compiled query. This is intended to be read by a developer for purposes of optimizing the query, especially to add database indexes. It's not machine-readable and its format may change. As currently implemented, the result is two or more lines separated by newline characters:

Link copied to clipboard
abstract fun orderBy(vararg orderings: Ordering): OrderBy

Create and chain an ORDER BY component for specifying the ORDER BY clause of the query.

Link copied to clipboard
fun Query.queryChangeFlow(coroutineContext: CoroutineContext? = null): Flow<QueryChange>

A Flow of query changes.

Link copied to clipboard
abstract fun removeChangeListener(token: ListenerToken)

Removes a change listener wih the given listener token.