mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
Added identity linked account
This commit is contained in:
@@ -30,8 +30,9 @@ import androidx.room.Update;
|
||||
|
||||
@Dao
|
||||
public interface DaoIdentity {
|
||||
@Query("SELECT * FROM identity")
|
||||
LiveData<List<EntityIdentity>> liveIdentities();
|
||||
@Query("SELECT identity.*, account.name AS accountName FROM identity" +
|
||||
" JOIN account ON account.id = identity.account")
|
||||
LiveData<List<TupleIdentityEx>> liveIdentities();
|
||||
|
||||
@Query("SELECT * FROM identity WHERE synchronize = :synchronize")
|
||||
LiveData<List<EntityIdentity>> liveIdentities(boolean synchronize);
|
||||
@@ -42,9 +43,6 @@ public interface DaoIdentity {
|
||||
@Query("SELECT * FROM identity WHERE id = :id")
|
||||
LiveData<EntityIdentity> liveIdentity(long id);
|
||||
|
||||
@Query("SELECT * FROM identity ORDER BY id LIMIT 1")
|
||||
LiveData<EntityIdentity> liveFirstIdentity();
|
||||
|
||||
@Insert(onConflict = OnConflictStrategy.REPLACE)
|
||||
long insertIdentity(EntityIdentity identity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user