mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-29 09:01:30 +01:00
Fixes and improvements
- Last loaders/executors have been gone - Improved debug info - Fixed multiple draft saves
This commit is contained in:
@@ -21,15 +21,18 @@ package eu.faircode.email;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import androidx.lifecycle.LiveData;
|
||||
import androidx.room.Dao;
|
||||
import androidx.room.Insert;
|
||||
import androidx.room.Query;
|
||||
import androidx.room.Update;
|
||||
|
||||
@Dao
|
||||
public interface DaoOperation {
|
||||
@Query("SELECT * FROM operation WHERE message = :message ORDER BY id")
|
||||
LiveData<List<EntityOperation>> getOperationsByMessage(long message);
|
||||
|
||||
@Query("SELECT * FROM operation WHERE folder = :folder ORDER BY id")
|
||||
List<EntityOperation> getOperations(long folder);
|
||||
List<EntityOperation> getOperationsByFolder(long folder);
|
||||
|
||||
@Query("SELECT COUNT(id) FROM operation WHERE folder = :folder")
|
||||
int getOperationCount(long folder);
|
||||
@@ -37,9 +40,6 @@ public interface DaoOperation {
|
||||
@Insert
|
||||
long insertOperation(EntityOperation operation);
|
||||
|
||||
@Update
|
||||
void updateOperation(EntityOperation operation);
|
||||
|
||||
@Query("DELETE FROM operation WHERE id = :id")
|
||||
void deleteOperation(long id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user