@Query("SELECT DISTINCT remoteId FROM NOTE WHERE accountId = :accountId AND status != 'LOCAL_DELETED'")
List<Long>getRemoteIds(longaccountId);
@Query("SELECT id, remoteId FROM NOTE WHERE accountId = :accountId AND status != 'LOCAL_DELETED'")
List<NoteIdPair>getRemoteIdAndId(longaccountId);
@Query("SELECT id, remoteId, 0 as accountId, '' as title, 0 as favorite, '' as excerpt, 0 as modified, '' as eTag, 0 as status, '' as category, '' as content, 0 as scrollY FROM NOTE WHERE accountId = :accountId AND status != 'LOCAL_DELETED'")
List<Note>getRemoteIdAndId(longaccountId);
/**
* Get a single {@link Note} by {@link Note#remoteId} (aka. Nextcloud file id)