add MapKeyValueRepo.kt

This commit is contained in:
2020-10-14 18:13:40 +06:00
parent af207d78a4
commit e78961b597
9 changed files with 115 additions and 4 deletions

View File

@@ -33,4 +33,6 @@ abstract class AbstractExposedReadCRUDRepo<ObjectType, IdType>(
override suspend fun contains(id: IdType): Boolean = transaction(db = database) {
select { selectById(id) }.limit(1).any()
}
override suspend fun count(): Long = transaction(db = database) { selectAll().count() }
}