Is this a good idea?

This commit is contained in:
M66B
2022-03-05 10:46:04 +01:00
parent ca02055b77
commit c1ebf5a69a
4 changed files with 30 additions and 1 deletions

View File

@@ -147,6 +147,9 @@ public interface DaoAccount {
@Query("SELECT * FROM account WHERE uuid = :uuid")
EntityAccount getAccountByUUID(String uuid);
@Query("SELECT * FROM account WHERE auth_type = :auth_type AND user = :user")
EntityAccount getAccount(int auth_type, String user);
@Query("SELECT * FROM account WHERE name = :name")
EntityAccount getAccount(String name);