mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-09 10:15:33 +00:00
upfixes
This commit is contained in:
@@ -143,12 +143,11 @@ class OneToManyAndroidRepo<Key, Value>(
|
||||
}.toLong()
|
||||
|
||||
override suspend fun count(k: Key): Long = helper.blockingReadableTransaction {
|
||||
select(
|
||||
selectDistinct(
|
||||
tableName,
|
||||
columns = valueColumnArray,
|
||||
selection = "$idColumnName=?",
|
||||
selectionArgs = arrayOf(k.keyAsString()),
|
||||
limit = FirstPagePagination(1).limitClause()
|
||||
selectionArgs = arrayOf(k.keyAsString())
|
||||
).use {
|
||||
it.count
|
||||
}
|
||||
|
Reference in New Issue
Block a user