notesmachine/server/nm-store
Elf M. Sternberg 1565fef001 REFACTOR: Dry'ing out the insert_new_note feature.
Since both `insert_page` and `insert_note` need to insert a note,
having that code twice in the same block was annoying, especially
since discovering that my oh-so-clever use of `include_str!`
precludes me from using the `query!` macros, which want the strings
included *before* doing analysis.

All that wrestling with the Transaction type turned out to be much
simpler when I was able to just devolve it into an Executor.
2020-09-30 08:53:45 -07:00
..
src REFACTOR: Dry'ing out the insert_new_note feature. 2020-09-30 08:53:45 -07:00
.gitignore DOC Phase one committed to the project, the basic layout of the backstore. 2020-09-27 05:35:37 -07:00
Cargo.toml FEAT: Can save a new page. Automagically includes its root note. 2020-09-30 07:37:18 -07:00
Makefile DOC Rustfmt works. 2020-09-29 08:08:30 -07:00
README.org DOC Phase one committed to the project, the basic layout of the backstore. 2020-09-27 05:35:37 -07:00

README.org

Notesmachine Store

This is the storage layer for Notesmachine. It supports the retrieval of the basic information from Notesmachine, but it never reveals the underlying mechanisms by which it performs its magic. The "ids" leaving this API will always be the textual ids used in all public representations:

  • Boxes are referenced by slugs, and clients must accept uniqueness failures.
  • Notes are referenced by "friendly_id" format strings, which are base-62 formatted versions of UUID4 strings.

Plans

TODO Make it possible to save a note

TODO Make it possible to retrieve a note

TODO Read how others use SQLX to initialize the database

TODO Implement CLI features

TODO Make it possible to connect two notes

TODO Make it possible to save a page

TODO Make it possible to connect a note to a page

TODO Make it possible to retrieve a collection of notes

TODO Make it possible to retrieve a page