search now supports searching / ordering by note size

This commit is contained in:
zadam
2021-01-22 22:20:17 +01:00
parent 480aec1667
commit 872e81fe1f
9 changed files with 93 additions and 20 deletions

View File

@@ -30,6 +30,15 @@ class Note {
/** @param {Note[]|null} */
this.ancestorCache = null;
// following attributes are filled during searching from database
/** @param {int} size of the content in bytes */
this.contentSize = null;
/** @param {int} size of the content and note revision contents in bytes */
this.noteSize = null;
/** @param {int} number of note revisions for this note */
this.revisionCount = null;
}
update(row) {