selectPagingSource

fun selectPagingSource(where: Where<T>? = null, orderBy: List<OrderBy<T>> = emptyList(), initialOffset: Int = 0, expiresAfter: ERROR CLASS: Symbol not found for Instant?? = null): ERROR CLASS: Symbol not found for PagingSource<kotlin/Int, T>(source)

Create a PagingSource that pages through results according to queries generated by from the passed in where and orderBy. initialOffset initial offset to start paging from.

Queries will be executed on Config.dispatcher.

Note: Offset paging is not very efficient on large datasets. Use wisely — for large or infinite-scroll lists prefer selectKeysetPagingSource, which has constant cost per page.

Parameters

expiresAfter

null ignores expiresAt, will not return any row which has expired set and is before expiresAfter. This is normally Clock.System.now.