mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Added FTS index worker
This commit is contained in:
@@ -227,6 +227,11 @@ public interface DaoMessage {
|
||||
" ORDER BY message.received DESC")
|
||||
List<Long> getMessageIdsByFolder(Long folder);
|
||||
|
||||
@Query("SELECT id FROM message" +
|
||||
" WHERE content AND NOT fts" +
|
||||
" ORDER BY message.received DESC")
|
||||
Cursor getMessageFts();
|
||||
|
||||
@Query("SELECT id, account, thread, (:find IS NULL" +
|
||||
" OR `from` LIKE :find COLLATE NOCASE" +
|
||||
" OR `to` LIKE :find COLLATE NOCASE" +
|
||||
@@ -437,6 +442,9 @@ public interface DaoMessage {
|
||||
@Query("UPDATE message SET notifying = :notifying WHERE id = :id")
|
||||
int setMessageNotifying(long id, int notifying);
|
||||
|
||||
@Query("UPDATE message SET fts = :fts WHERE id = :id")
|
||||
int setMessageFts(long id, boolean fts);
|
||||
|
||||
@Query("UPDATE message SET received = :received WHERE id = :id")
|
||||
int setMessageReceived(long id, long received);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user