Package-level declarations

Types

Link copied to clipboard
typealias QueryProvider = From.() -> LimitRouter

Functions

Link copied to clipboard
@JvmName(name = "QueryPagingSourceStringWithQuery")
fun <RowType : Any> QueryPagingSource(context: CoroutineContext, select: Select, collection: Collection, mapper: (String) -> RowType, queryProvider: QueryProvider, initialOffset: Int = 0): PagingSource<Int, RowType>
@JvmName(name = "QueryPagingSourceWithQuery")
fun <RowType : Any> QueryPagingSource(context: CoroutineContext, select: Select, collection: Collection, mapper: (Map<String, Any?>) -> RowType, queryProvider: QueryProvider, initialOffset: Int = 0): PagingSource<Int, RowType>

Create a PagingSource that pages through results according to queries generated by queryProvider. queryProvider receives a SELECT FROM collection and should append any necessary SQL JOIN, WHERE, ORDER BY, and GROUP BY clauses.