Skip to main content

Crate type_bridge_orm

Crate type_bridge_orm 

Source
Expand description

Shared TypeDB execution engine for generated TypeBridge clients.

Public application model construction lives in generated type-bridge packages. This crate exposes connection, query, transaction, and verified runtime-projection execution; handwritten model traits, derives, registries, descriptors, managers, and schema authoring are not package-root APIs.

Re-exports§

pub use error::ClassifiedCommitError;
pub use error::CommitFailureCertainty;
pub use error::OrmError;
pub use error::Result;
pub use expr::Agg;
pub use expr::AggResult;
pub use expr::Expr;
pub use expr::GroupByResult;
pub use expr::SortDir;
pub use filter::Filter;
pub use hooks::CrudOperation;
pub use hooks::HookContext;
pub use hooks::HookError;
pub use hooks::HookRunner;
pub use hooks::LifecycleHook;
pub use hooks::PreHookResult;
pub use hooks::TypeKind;
pub use provider_runtime::ProviderRuntimeOwner;
pub use query::EntityQuery;
pub use query::GroupByEntityQuery;
pub use query::GroupByRelationQuery;
pub use query::RelationQuery;
pub use runtime_projection::InstalledRuntimeProjection;
pub use session::backend::AnswerCancellation;
pub use session::Database;
pub use session::DatabaseConnectionAuthority;
pub use session::GivenRowsSpec;
pub use session::GivenValue;
pub use session::Transaction;
pub use session::TransactionContext;
pub use session::TxType;
pub use session::require_legacy_writer_open;
pub use session::require_legacy_writer_open_in_transaction;
pub use session::database_exists;
pub use session::database_exists_secure;
pub use session::delete_database_secure;
pub use session::ensure_database_exists;
pub use session::ensure_database_exists_secure;
pub use value::AttributeValue;
pub use match_request::*;

Modules§

error
Unified error types for the ORM crate.
expr
Expression system for building typed queries.
filter
Query filters for entity lookups.
hooks
Lifecycle hook system for CRUD operations.
match_request
Canonical, provider-neutral typed match request and result contract.
migration_assertion
TypeDB lowering and bounded execution for validated migration assertions.
provider_runtime
Tokio runtime ownership for synchronous language bindings.
query
Chainable query builders for entities and relations.
query_v2
Deterministic TypeQL lowering for validated V2 query plans.
query_v2_builder
Shared incremental authoring state machine for canonical V2 query plans.
query_v2_prepared
Prepared-plan execution facade for idiomatic binding projections.
query_v2_remote
Remote execution of validated query plans over the versioned envelope.
runtime_projection
Provider descriptors derived one-way from a trusted runtime projection.
session
Session layer for TypeDB connectivity.
value
Typed attribute values corresponding to TypeDB value types.

Structs§

ClaimedRemoteModelReplyV2
The sole claimed reply slot for one adapted model request.
ConnectOptions
Connection-time options for the version-gated TypeDB runtime.
DynamicAggregate
Runtime aggregate requested by a language binding.
DynamicEntityIdentity
Identity-only evidence for one concrete entity discovered under a root type.
DynamicEntityRow
Dynamic entity row hydrated from a fetch document.
DynamicRelationIdentity
Owned identity-only evidence for a concrete relation discovered under a root relation.
DynamicRelationRow
Runtime relation row hydrated from a fetch document.
DynamicRolePlayer
Dynamic role player hydrated from relation fetch output or provided for relation insert.
DynamicRolePlayerInput
Runtime role player reference used for dynamic relation inserts.
PendingRemoteModelQueryV2
One adapted model request and its request-bound one-shot decoder.
SecureConnectOptions
Connection options for the typed TLS transport surface.

Enums§

DynamicComparisonOp
Runtime comparison operator requested by a language binding.
DynamicExpr
Runtime expression tree requested by a language binding.
DynamicSort
Runtime sort requested by a language binding.
RemoteModelQueryV2Error
A model-query remote failure retains its native structured error family.
SecureConnectError
Error returned by typed secure connection and lifecycle entry points.
TlsMode
Canonical TLS policy for secure TypeDB connections.
ValueType
TypeDB value type enum for type-safe metadata.

Functions§

embedded_driver_versions
Return the driver versions compiled into this build, keyed by protocol band.
prepare_remote_model_query_v2
Adapt and prepare one released model-oriented terminal for remote V2 execution.

Type Aliases§

DynamicAttributeMap
Runtime attribute values keyed by TypeDB attribute name or descriptor field name.
SecureResult
Result alias for typed secure connection and lifecycle operations.