Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Dao
- public interface SomeDao {
- @Query("SELECT * FROM SomeDao")
- Flowable<List<SomeDao>> getAll();
- @Insert(onConflict = OnConflictStrategy.REPLACE)
- void insert(List<SomeDao> daos);
- @Query("SELECT * FROM SomeDao where id = :id")
- Flowable<SomeDao> getById(int id);
- @Query("DELETE FROM SomeDao")
- void deleteAll();
- }
Add Comment
Please, Sign In to add comment