CrudRepository
abstract class CrudRepository<ID : Comparable<ID>, E : Entity<ID>>(provider: DatabaseProvider) : Repository<ID, E>
Abstract repository that provides full CRUD operations on top of Repository.
All blocking methods delegate to provider.dbQuery; coroutine variants use provider.dbQuerySuspend so callers can choose the concurrency model.
Usage:
class PlayerRepository(provider: DatabaseProvider) :
CrudRepository<Int, PlayerEntity>(provider) {
override val dao = PlayerEntity
}Content copied to clipboard