+ @Delete
+ public abstract void deleteSync(List<Account> items);
+
+ @Query("SELECT * FROM accounts WHERE profile_id=:profileId")
+ public abstract LiveData<List<Account>> getAll(long profileId);
+
+ @Transaction
+ @Query("SELECT * FROM accounts WHERE profile_id = :profileId")
+ public abstract LiveData<List<AccountWithAmounts>> getAllWithAmounts(long profileId);
+
+ @Query("SELECT * FROM accounts WHERE id=:id")
+ public abstract Account getByIdSync(long id);