Expand description
§type-bridge-core-lib
Pure-Rust core library for type-bridge, providing a TypeQL AST, schema parser, query compiler, value coercer, and validation engine.
§Modules
| Module | Purpose |
|---|---|
ast | TypeQL Abstract Syntax Tree — patterns, statements, clauses, and values |
validation | Schema-aware query validation plus a custom validation-rule DSL |
compiler | Compiles an AST back into a TypeQL query string |
query_parser | Parses a TypeQL query string into the AST |
value_coercion | Coerces raw values into TypeDB value-types and formats TypeQL literals |
reserved_words | TypeQL reserved-word detection |
version | TypeDB compatibility window, protocol-band map, and version gate (SSOT) |
Modules§
- ast
- TypeQL Abstract Syntax Tree — patterns, statements, clauses, and values.
- compiler
- Compiles an AST back into a TypeQL query string.
TypeQL query compiler — converts AST nodes (
QueryNode, usuallyClauses) into TypeQL query strings. - decimal
- Canonical TypeDB decimal parsing and semantic comparison. Canonical TypeDB decimal parsing and semantic comparison.
- proxy_
http - Plaintext or TLS HTTP client for a TypeBridge proxy’s
/v2routes. Blocking HTTP client for the standalone server’s/v2/capabilitiesand/v2/queryroutes. - query_
parser - Parses a TypeQL query string into the AST. Compatibility projection of the official TypeQL parser onto legacy clauses.
- reserved_
words - TypeQL reserved-word detection. TypeQL reserved words — keywords that cannot be used as type or variable names.
- validation
- Schema-aware query validation plus a custom validation-rule DSL.
- value_
coercion - Coerces raw values into TypeDB value-types and formats TypeQL literals. Value coercion and formatting for TypeDB value types.
- version
- TypeDB compatibility window, protocol-band map, and connect-time version gate. TypeDB driver / server version gate.