Skip to main content

Module doc

Module doc 

Source
Expand description

Opening a source into a queryable adapter, and running queries against it.

AstAdapter is object-safe, but each adapter’s render method (pointer / locator / path) is an inherent method, not on the trait — so, as the Python bindings do, we hold one of a fixed set of adapter families in an enum and dispatch render (and the WithNow/AllowShell query wrap) by variant.

The text-format variants always compile (they are wasm-safe); the native fleet (filesystem, git, SQLite, archives, spreadsheets, source code, mounts) is gated behind the native feature, as is the filesystem open/mount dispatch. The wasm build drives everything through Doc::parse.

Structs§

Dyn
A boxed adapter as an adapter — plain delegation (the quarb-py Dyn pattern).
Options
Options that shape how native sources open (unused on wasm, which only parses text).

Enums§

Doc
A materialized source: one variant per adapter family. JSON-model formats (json/yaml/toml) render node results as pointers, the rest as locators.