Constructors

Functions

Link copied to clipboard
open suspend override fun contains(id: FromId): Boolean
Link copied to clipboard
open suspend override fun count(): Long
Link copied to clipboard
open suspend override fun create(values: List<FromInput>): List<FromRegistered>
Link copied to clipboard
open suspend override fun deleteById(ids: List<FromId>)
Link copied to clipboard
open suspend override fun getById(id: FromId): FromRegistered?
Link copied to clipboard
open suspend override fun getByPagination(pagination: Pagination): PaginationResult<FromRegistered>
Link copied to clipboard
open suspend override fun getIdsByPagination(pagination: Pagination): PaginationResult<FromId>
Link copied to clipboard
open suspend override fun ToId.toInnerKey(): FromId
Link copied to clipboard
open suspend override fun ToRegistered.toInnerValue(): FromRegistered
Link copied to clipboard
open suspend override fun FromId.toOutKey(): ToId
Link copied to clipboard
open suspend override fun FromRegistered.toOutValue(): ToRegistered
Link copied to clipboard
open suspend override fun update(values: List<UpdatedValuePair<FromId, FromInput>>): List<FromRegistered>
open suspend override fun update(id: FromId, value: FromInput): FromRegistered?

Properties

Link copied to clipboard
open override val deletedObjectsIdsFlow: Flow<FromId>
Link copied to clipboard
Link copied to clipboard
open override val newObjectsFlow: Flow<FromRegistered>
Link copied to clipboard
open override val updatedObjectsFlow: Flow<FromRegistered>
Link copied to clipboard

Extensions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <FromKey, FromValue, FromInput, ToKey, ToValue, ToInput> CRUDRepo<ToValue, ToKey, ToInput>.withMapper(noinline keyFromToTo: suspend FromKey.() -> ToKey = { this as ToKey }, noinline valueFromToTo: suspend FromValue.() -> ToValue = { this as ToValue }, noinline inputFromToTo: suspend FromInput.() -> ToInput = { this as ToInput }, noinline keyToToFrom: suspend ToKey.() -> FromKey = { this as FromKey }, noinline valueToToFrom: suspend ToValue.() -> FromValue = { this as FromValue }, noinline inputToToFrom: suspend ToInput.() -> FromInput = { this as FromInput }): CRUDRepo<FromValue, FromKey, FromInput>
inline fun <FromKey, FromValue, ToKey, ToValue> ReadCRUDRepo<ToValue, ToKey>.withMapper(noinline keyFromToTo: suspend FromKey.() -> ToKey = { this as ToKey }, noinline valueFromToTo: suspend FromValue.() -> ToValue = { this as ToValue }, noinline keyToToFrom: suspend ToKey.() -> FromKey = { this as FromKey }, noinline valueToToFrom: suspend ToValue.() -> FromValue = { this as FromValue }): ReadCRUDRepo<FromValue, FromKey>
inline fun <FromKey, FromValue, FromInput, ToKey, ToValue, ToInput> WriteCRUDRepo<ToValue, ToKey, ToInput>.withMapper(noinline keyFromToTo: suspend FromKey.() -> ToKey = { this as ToKey }, noinline valueFromToTo: suspend FromValue.() -> ToValue = { this as ToValue }, noinline inputFromToTo: suspend FromInput.() -> ToInput = { this as ToInput }, noinline keyToToFrom: suspend ToKey.() -> FromKey = { this as FromKey }, noinline valueToToFrom: suspend ToValue.() -> FromValue = { this as FromValue }, noinline inputToToFrom: suspend ToInput.() -> FromInput = { this as FromInput }): WriteCRUDRepo<FromValue, FromKey, FromInput>