# Package-level declarations

## Functions

getAll
Link copied to clipboard
inline suspend fun < T , ID , REPO : ReadCRUDRepo < T , ID >> REPO . getAll (crossinline methodCaller: suspend REPO .( Pagination ) -> PaginationResult < T >): List < T >

Retrieves all items from a ReadCRUDRepo by iterating through all pages. Uses maxPagePagination to determine the starting pagination and the provided methodCaller to fetch each page.

inline suspend fun < Key , Value , REPO : ReadKeyValueRepo < Key , Value >> REPO . getAll (crossinline methodCaller: suspend REPO .( Pagination ) -> PaginationResult < Key >): List < Pair < Key , Value >>

Retrieves all key-value pairs from a ReadKeyValueRepo by iterating all pages. Uses maxPagePagination as the starting pagination and methodCaller to fetch each page of keys.

inline suspend fun < Key , Value , REPO : ReadKeyValuesRepo < Key , Value >> REPO . getAll (crossinline methodCaller: suspend REPO .( Pagination ) -> PaginationResult < Key >): List < Pair < Key , List < Value >>>

Retrieves all key-to-list-of-values pairs from a ReadKeyValuesRepo by iterating all pages. Uses maxPagePagination as the starting pagination and methodCaller to fetch each page of keys.

inline suspend fun < T , ID , REPO : ReadCRUDRepo < T , ID >> REPO . getAll (pagination: Pagination , crossinline methodCaller: suspend REPO .( Pagination ) -> PaginationResult < T >): List < T >

Retrieves all items from a ReadCRUDRepo by iterating through pages starting from the given pagination. Uses the provided methodCaller to fetch each page.

inline suspend fun < Key , Value , REPO : ReadKeyValueRepo < Key , Value >> REPO . getAll (pagination: Pagination , crossinline methodCaller: suspend REPO .( Pagination ) -> PaginationResult < Key >): List < Pair < Key , Value >>

Retrieves all key-value pairs from a ReadKeyValueRepo by iterating pages starting from pagination. Uses methodCaller to fetch each page of keys, then resolves each key to its value via ReadKeyValueRepo.get.

inline suspend fun < Key , Value , REPO : ReadKeyValuesRepo < Key , Value >> REPO . getAll (pagination: Pagination , crossinline methodCaller: suspend REPO .( Pagination ) -> PaginationResult < Key >): List < Pair < Key , List < Value >>>

Retrieves all key-to-list-of-values pairs from a ReadKeyValuesRepo by iterating pages starting from pagination. Uses methodCaller to fetch each page of keys, then resolves all values per key via ReadKeyValuesRepo.getAll.

maxPagePagination
Link copied to clipboard
inline suspend fun ReadCRUDRepo <*, *>. maxPagePagination (): SimplePagination

Creates a pagination starting from the first page with size equal to the total count of items in this ReadCRUDRepo. This effectively creates a single page containing all items.

inline suspend fun ReadKeyValueRepo <*, *>. maxPagePagination (): SimplePagination

Creates a pagination starting from the first page with size equal to the total count of items in this ReadKeyValueRepo. This effectively creates a single page containing all items.

inline suspend fun ReadKeyValuesRepo <*, *>. maxPagePagination (): SimplePagination

Creates a pagination starting from the first page with size equal to the total count of items in this ReadKeyValuesRepo. This effectively creates a single page containing all items.