Cleanup previous PR

Return items_ids rather than note_ids as the rest of the API uses
items_ids to reference notes not note_ids. Also allow querying for only
a single field if needed.
This commit is contained in:
Kovid Goyal
2023-09-22 14:45:20 +05:30
parent 4e878b14cc
commit ae029cf06a
5 changed files with 16 additions and 12 deletions
+2
View File
@@ -8,6 +8,8 @@ CREATE TABLE notes_db.notes ( id INTEGER PRIMARY KEY AUTOINCREMENT,
UNIQUE(item, colname)
);
CREATE INDEX notes_db.notes_colname_idx ON notes (colname);
CREATE TABLE notes_db.resources (
hash TEXT NOT NULL PRIMARY KEY ON CONFLICT FAIL,
name TEXT NOT NULL UNIQUE ON CONFLICT FAIL