addOrUpdate

abstract suspend fun addOrUpdate(entity: T): T

adds or updates an entity

Return

the new entity after add or update

Parameters

entity

entity to add or to save