QueryRepository

interface QueryRepository<T, I, Q>

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

Functions

Link copied to clipboard
abstract suspend fun addOrUpdate(entities: List<T>, entity: T): List<T>

adds or updates an entity in the list

Link copied to clipboard
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

Link copied to clipboard
abstract suspend fun query(query: Q): List<T>

runs a query

Link copied to clipboard
abstract suspend fun updateMany(entities: List<T>, entitiesToUpdate: List<T>): List<T>

updates all entities in the list

Inheritors

Link copied to clipboard
Link copied to clipboard