QueryRepository

interface QueryRepository<T, I, Q>

defines the interface that should be provided by all repositories dealing with a list of Entities.

Functions

addOrUpdate
Link copied to clipboard
js
abstract suspend fun addOrUpdate(entities: List<T>, entity: T): List<T>
adds or updates an entity in the list
delete
Link copied to clipboard
js
abstract suspend fun delete(entities: List<T>, id: I): List<T>
delete one entity
abstract suspend fun delete(entities: List<T>, ids: List<I>): List<T>
delete multiple entities
query
Link copied to clipboard
js
abstract suspend fun query(query: Q): List<T>
runs a query
updateMany
Link copied to clipboard
js
abstract suspend fun updateMany(entities: List<T>, entitiesToUpdate: List<T>): List<T>
updates all entities in the list

Inheritors

LocalStorageQuery
Link copied to clipboard
RestQuery
Link copied to clipboard