Added operations to debug info

This commit is contained in:
M66B
2022-02-11 10:54:59 +01:00
parent f82e503917
commit 6943a7a250
2 changed files with 17 additions and 3 deletions

View File

@@ -118,6 +118,13 @@ public interface DaoOperation {
@Query("SELECT * FROM operation WHERE error IS NOT NULL")
List<EntityOperation> getOperationsError();
@Query("SELECT COUNT(id) FROM operation")
int getOperationCount();
@Query("SELECT COUNT(id) FROM operation" +
" WHERE account = :account")
int getOperationCount(long account);
@Query("SELECT COUNT(id) FROM operation" +
" WHERE folder = :folder" +
" AND (:name IS NULL OR name = :name)")