quarb-model 0.13.0

Model files: derived arbor structure over any Quarb source
Documentation
  • Coverage
  • 50%
    14 out of 28 items documented0 out of 5 items with examples
  • Size
  • Source code size: 49.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 909.17 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • quarb/engine
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • deyanovich

Model files: derived arbor structure over any Quarb source.

A [Model] (parsed from a --model file, see [parse_model]) declares derived containers, references, and edges over a base arbor — the top rung of the reference-provenance ladder, generalizing the SQLite views-and---refs construction to any substrate (a CSV, a JSON export, a log stream).

[ModelAdapter] wraps a base adapter and presents the base's own nodes unchanged, adding the derived containers as new root children in a reserved node-id band (bit 63). Derived structure materializes lazily: a node constructor runs its query over the base (never over self, so no recursion) on first touch, and the distinct string-keyed values are cached. Declared references and edges build forward/reverse value indexes on first use.