I'm using Android Room with RxJava
dependencies {
implementation 'androidx.room:room-rxjava2:2.1.0-alpha02'
}
I need to get Completable from parameterized deletion methods, I thought this feature is added as of 2.1.0? ex.
@Query("DELETE FROM message_table WHERE uid = :id")
Completable delete(String id);
@Query("DELETE FROM message_table")
Completable deleteAll();
Still throws error: Deletion methods must either return void or return int (the number of deleted rows).
DELETE
in a@Query
, though. – AcidheadSingle.fromCallable
and make thedeleteAll
returns int – Mana