notesmachine/server/nm-store/src/sql
Elf M. Sternberg da44610098 Reverse reference SQL written.
This is pretty hairy, because we're relying on the LEFT JOIN feature
to give us the root node when we need it.  That's kinda ugly, but
it seems to work just fine.  It also gives us the list in the
*correct* order, so the only thing we need to do is go to the last
item in the returned vector, make sure it's a root node, then go
fetch the page so we can decorate the list with the *right* root.
We'll pass this as a JSON object { [notes-in-reverse], page }.
2020-10-29 10:50:31 -07:00
..
initialize_database.sql FEAT Delete & Update note is now complete. 2020-10-26 18:54:56 -07:00
insert_one_note.sql FEAT Can now retrieve and individual date by public ID. 2020-09-29 18:24:34 -07:00
insert_one_page.sql FEAT: Can save a new page. Automagically includes its root note. 2020-09-30 07:37:18 -07:00
reverse_select_references_from_note.sql Reverse reference SQL written. 2020-10-29 10:50:31 -07:00
select_note_collection_from_root.sql Reverse reference SQL written. 2020-10-29 10:50:31 -07:00
select_one_note.sql FEAT Can now retrieve and individual date by public ID. 2020-09-29 18:24:34 -07:00
select_one_page.sql FEAT: Can save a new page. Automagically includes its root note. 2020-09-30 07:37:18 -07:00
update_one_note.sql FEAT Can update a raw note. 2020-09-30 09:17:37 -07:00