Expand description
One-way compatibility front-ends for the V2 schema fact graph.
This public supporting crate is deliberately narrow. Source-language parsers
converge on type_bridge_schema::FactAssembler; contract and schema crates
never depend on compatibility parsers or their transitive grammar
dependencies.
Re-exports§
pub use shadow::ShadowCompared;pub use shadow::ShadowComparison;pub use shadow::ShadowCoverage;pub use shadow::ShadowCoverageState;pub use shadow::ShadowDimension;pub use shadow::ShadowFinding;pub use shadow::ShadowLaneNotRun;pub use shadow::ShadowLaneOutcome;pub use shadow::ShadowLaneRejection;pub use shadow::ShadowLaneSummary;pub use shadow::ShadowVerdict;pub use shadow::V1ShadowInternalError;pub use shadow::V1ShadowReport;pub use shadow::v1_shadow_report;
Modules§
- shadow
- Comparison-only reporting between the frozen V1 parser and the V2 fact graph. Honest, comparison-only shadowing of the frozen V1 schema parser.
Structs§
- Adopted
Genesis Authority - Lossless authority view of one released pre-adoption schema.
- Function
Body References - Static schema references found in one function body.
- Generated
Declared Descriptor SetV1 - Closed, direct-only descriptor snapshot emitted by generated bindings.
- Live
Query Authority State - Exact live query authority reconstructed from one schema export.
- Typeql
Declared Schema - A declared schema plus references derived from each TypeQL function body.
Enums§
- Live
Legacy Ledger Presence - Whether the exact released V1 migration-ledger schema is present.
- Live
Query Control Presence - Whether a live query schema carries the complete managed-database fence partition.
- Schema
Reference - A neutral, static schema identity referenced by a TypeQL function body.
Constants§
- ADOPTED_
GENESIS_ FILE_ NAME - File name of the adopted-genesis artifact inside the canonical migration directory.
- GENERATED_
DECLARED_ DESCRIPTOR_ PATH - Generated package path containing the canonical direct declaration snapshot.
- GENERATED_
DECLARED_ DESCRIPTOR_ V1 - Exact discriminator for the first generated direct-descriptor format.
- GENERATED_
DECLARED_ DESCRIPTOR_ V2 - Exact discriminator for generated descriptors that carry ordered collections.
- LEGACY_
LEDGER_ SCHEMA_ TYPEQL - Frozen TypeQL rendering of the released v1 migration-ledger schema.
- MANAGED_
FENCE_ SCHEMA_ TYPEQL - Exact TypeDB 3 fence-mirror schema installed in a managed database.
- MAX_
TYPEQL_ SCHEMA_ BYTES - Defensive source bound applied before entering the third-party parser.
Functions§
- attach_
declared_ descriptors - Attach an already-rendered declared-descriptor snapshot to a generated package exactly like the standard generation path: the snapshot file plus, for Python, the registry constant.
- empty_
generated_ declared_ descriptors_ json - Render the canonical empty declared-descriptor snapshot: a closed world with zero declarations, as produced by a complete teardown.
- generate_
package_ with_ declared_ descriptors - Render models and attach the direct declaration snapshot from the same input.
- generated_
declared_ descriptors_ json - Project a generation-time TypeQL input into canonical direct-descriptor JSON.
- generated_
descriptors_ to_ declared - Decode canonical generated-descriptor JSON and adapt direct declarations
through the source-language-neutral
FactAssembler. - is_
legacy_ ledger_ label - Return whether a schema label belongs to the frozen v1 ledger vocabulary.
- legacy_
ledger_ schema_ presence - Inspect one TypeDB schema export for the exact frozen V1 ledger schema.
- managed_
fence_ schema_ presence - Inspect one TypeDB schema export for the exact managed writer-fence schema.
- parse_
adopted_ genesis - Parse adopted-genesis bytes into the reconstructed legacy head.
- parse_
adopted_ genesis_ authority - Parse the raw durable artifact into portable facts plus lossless V1 identity.
- parse_
adopted_ genesis_ authority_ with_ internal - Parse a live adoption export while permitting one exact V2 control partition.
- rebuild_
live_ query_ authority - Rebuild live schema authority together with exact control-schema presence.
- rebuild_
live_ query_ authority_ state - Rebuild live schema authority for a read-only V2 query executor.
- released_
typeql_ to_ declared_ lossless_ projection - Project released TypeQL without discarding any schema-semantic construct.
- released_
typeql_ to_ declared_ lossless_ projection_ with_ references - Losslessly project released TypeQL while retaining static function-body references.
- released_
typeql_ to_ declared_ projection - Project released generator TypeQL through compatibility normalization.
- released_
typeql_ to_ declared_ projection_ with_ references - Project released generator TypeQL while retaining references from every function body accepted by the strict importer.
- toml_
to_ declared - Transpile one legacy TOML schema and adapt its rendered TypeQL into the canonical declared schema graph.
- toml_
to_ facts - Transpile legacy TOML and return canonical direct facts in identity order.
- typeql_
to_ declared - Parse one TypeQL
definequery into the canonical declared schema graph. - typeql_
to_ declared_ with_ references - Parse one TypeQL
definequery into the canonical declared schema graph and derive neutral references from every function body. - typeql_
to_ facts - Parse TypeQL and return canonical direct facts in identity order.
- typeql_
to_ generated_ descriptors - Project TypeQL direct facts into the closed generated-descriptor format.