Ktor Standard Crud Repo
class KtorStandardCrudRepo<ObjectType, IdType, InputValue>(baseUrl: String, baseSubpart: String, unifiedRequester: UnifiedRequester, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, inputsSerializer: KSerializer<InputValue>, idsSerializer: KSerializer<IdType>) : StandardCRUDRepo<ObjectType, IdType, InputValue> , ReadStandardCRUDRepo<ObjectType, IdType> , WriteStandardCRUDRepo<ObjectType, IdType, InputValue>
Content copied to clipboard
Constructors
KtorStandardCrudRepo
Link copied to clipboard
fun <ObjectType, IdType, InputValue> KtorStandardCrudRepo(baseUrl: String, baseSubpart: String, client: <ERROR CLASS>, objectsSerializer: KSerializer<ObjectType>, objectsNullableSerializer: KSerializer<ObjectType?>, inputsSerializer: KSerializer<InputValue>, idsSerializer: KSerializer<IdType>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat)
Content copied to clipboard
Functions
create
Link copied to clipboard
open suspend override fun create(values: List<InputValue>): List<ObjectType>
Content copied to clipboard
delete By Id
Link copied to clipboard
get By Id
Link copied to clipboard
get By Pagination
Link copied to clipboard
open suspend override fun getByPagination(pagination: Pagination): PaginationResult<ObjectType>
Content copied to clipboard
update
Link copied to clipboard
open suspend override fun update(values: List<UpdatedValuePair<IdType, InputValue>>): List<ObjectType>
Content copied to clipboard
open suspend override fun update(id: IdType, value: InputValue): ObjectType?
Content copied to clipboard
Properties
deletedObjectsIdsFlow
Link copied to clipboard
newObjectsFlow
Link copied to clipboard
updatedObjectsFlow
Link copied to clipboard