Expand description
SQLite database layer — schema, CRUD, FTS, and link storage.
All functions take a &Connection (no global state). The database lives
at <vault>/.lore/lore.db and is opened via open_db.
Structs§
Functions§
- delete_
fts - Delete a page’s FTS entry.
- delete_
links_ from - Delete all links originating from a source slug.
- delete_
page - Delete a page and its associated links and FTS entry.
- get_
all_ hashes - Get all content hashes for diffing: slug -> hash.
- get_
all_ pages - Get all pages sorted by title.
- get_
all_ slugs - Get all known slugs as a set (for checking page existence).
- get_
backlinks - Get backlinks: all pages that link TO a given slug.
- get_
outgoing_ targets - Get all outgoing link target slugs for a given source page.
- get_
page - Get a page by slug.
- insert_
links - Insert a batch of links.
- open_db
- Open or create the
SQLitedatabase inside<vault>/.lore/. - rename_
page - Rename a page: update its slug/title and all links that reference it.
- update_
fts - Update FTS index for a page.
- upsert_
page - Upsert a page (insert or update on slug conflict).