Added external enable/disable account

This commit is contained in:
M66B
2019-08-03 21:51:02 +02:00
parent 1053ba3ac1
commit 3cb8ffd0cd
3 changed files with 51 additions and 9 deletions

View File

@@ -71,6 +71,9 @@ public interface DaoAccount {
@Query("SELECT * FROM account WHERE id = :id")
EntityAccount getAccount(long id);
@Query("SELECT * FROM account WHERE name = :name")
EntityAccount getAccount(String name);
@Query("SELECT * FROM account WHERE `primary`")
EntityAccount getPrimaryAccount();