mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-16 01:00:17 +01:00
db: cover downloaded paging invalidation and filters
Add tests for the downloaded artist and playlist paging sources now that their observed entities are hand-picked, and assert the downloaded search/starred filters directly. The downloaded artist plan test uses the real select list and documents the computed album count's in-memory sort, which the hand-written query also had.
This commit is contained in:
@@ -219,8 +219,9 @@ internal fun rawQuery(
|
||||
index++
|
||||
}
|
||||
}
|
||||
val values = names.map(bindings::getValue)
|
||||
return RoomRawQuery(positional) { statement ->
|
||||
names.forEachIndexed { index, name -> statement.bind(index + 1, bindings.getValue(name)) }
|
||||
values.forEachIndexed { index, value -> statement.bind(index + 1, value) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user