diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-21 11:42:42 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-22 14:54:32 -0400 |
| commit | 3f87aa600b5080135557d846ee1ba7daef9d3155 (patch) | |
| tree | fed92ba22b9baa0b8f3acfbb1eda46f5f5fa5d67 /flake.nix | |
| parent | ocda db: one <doc>.ocda.db holding every language (diff) | |
ocda.db: read a document language of a database
A database now holds every language of its document, so reading one
means naming a language. Three small pieces:
- spineDbLanguages says what languages a file holds. Its own template
rather than part of the reader (asking a file what it holds does not
instantiate the object setter and the markup regexes with it).
- abstractionLoad and spineDocFromArtefact take a language and pass it
to dbReadFile, which resolves it to a doc_id, takes that language
document where there is one, and lists the languages and stops where
there is a choice.
- spineArtefactLanguages turns an artefact into the documents to build:
one for a .ssp, and for a database the languages it holds filtered by
--lang. The artefact loop then has a language loop inside it, so a
single .ocda.db argument builds every language, as the pod it came
from would.
--db-round-trip takes --lang for the same reason, and ocda-db looses
--parallel (would cause a race).
(assisted by Claude-Code)
Diffstat (limited to 'flake.nix')
0 files changed, 0 insertions, 0 deletions
