repo

Repository helpers that read and write domain models. Data-access repositories for domain models.

Each submodule wraps a single table (or tightly coupled set of tables) and exposes free functions that take a libsql::Connection so the caller controls transaction boundaries.

Name Summary
artifact Reads and writes the artifacts table: listing, creation, updates, archiving and id prefix lengths.
author Reads and writes rows of the authors table, the people and agents that act on entities.
entity Cross-entity repository helpers that coordinate mutations across multiple tables.
iteration Reads and writes the iterations table and its iteration_tasks join table, which places tasks in phases.
note Reads and writes rows of the notes table, the comments attached to tasks, artifacts and iterations.
project Reads and writes the projects and project_workspaces tables, and archives and deletes whole projects.
purge Read-only selectors that enumerate entities eligible for purge.
relationship Typed, directed links between two entities, stored in the relationships table.
resolve Resolve a short id prefix, as a user types it, to one full Id.
search Cross-entity search: turns a parsed query into SQL over tasks, artifacts and iterations.
tag Tags and their attachment to entities through the entity_tags join table.
task Reads and writes the tasks table: listing, creation, updates, status counts and id prefix lengths.
transaction Undo journal: transactions, the row-level events recorded inside them, and their replay.