Constructors

Link copied to clipboard

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

Functions

Link copied to clipboard
Link copied to clipboard
fun <ObjectType, IdType, InputType> WriteCRUDRepo<ObjectType, IdType, InputType>.caching(kvCache: KVCache<IdType, ObjectType>, scope: CoroutineScope, locker: SmartRWLocker = SmartRWLocker(), idGetter: (ObjectType) -> IdType): WriteCRUDCacheRepo<ObjectType, IdType, InputType>
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
Link copied to clipboard
fun <ObjectType, IdType, InputType> CRUDRepo<ObjectType, IdType, InputType>.fullyCached(kvCache: KeyValueRepo<IdType, ObjectType> = MapKeyValueRepo(), scope: CoroutineScope = CoroutineScope(Dispatchers.Default), skipStartInvalidate: Boolean = false, locker: SmartRWLocker = SmartRWLocker(), idGetter: (ObjectType) -> IdType): FullCRUDCacheRepo<ObjectType, IdType, InputType>
Link copied to clipboard
open suspend override fun getAll(): Map<FromId, FromRegistered>
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
inline suspend fun ReadCRUDRepo<*, *>.maxPagePagination(): SimplePagination
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?
Link copied to clipboard
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> 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, 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>