select Result
fun selectResult(where: Where<T>? = null, orderBy: List<OrderBy<T>> = emptyList(), limit: Long? = null, offset: Long? = null, expiresAfter: ERROR CLASS: Symbol not found for Instant?? = null): ERROR CLASS: Symbol not found for Flow<kotlin/collections/List<com/mercury/sqkon/db/ResultRow<T>>>(source)
Select using where clause. If where is null, all rows will be selected.
Simple example with where and orderBy:
val merchantsFlow = store.select(
where = Merchant::category like "Restaurant",
orderBy = listOf(OrderBy(Merchant::createdAt, OrderDirection.DESC))
)Content copied to clipboard
The result row is useful if you need metadata on the row level specific to Sqkon intead of your entity.