Skip to main content

Crate type_bridge_typedb_runtime

Crate type_bridge_typedb_runtime 

Source
Expand description

Shared TypeDB driver runtime.

This crate owns all direct TypeDB driver interaction so higher-level crates can share version gating, gRPC fallback, database lifecycle, transactions, and JSON conversion without depending on each other.

Structs§

ConnectOptions
Connection-time options for the version-gated TypeDB runtime.
GivenRowsSpec
Input rows for a given-stage query: a variable header plus value rows.
QueryV2RuntimeAnswerLimits
V2-only runtime limits layered over the released answer-limit shape.
RuntimeAnswerCancellation
Cooperative cancellation shared with the ORM answer policy.
RuntimeAnswerLimits
Hard limits checked while polling a real driver answer stream.
RuntimeAnswerStats
Bounded stream counters returned without materializing all items.
RuntimeTransaction
Open TypeDB transaction owned by the shared runtime.
SecureConnectOptions
Connection options for the typed TLS transport surface.
TypeDBRuntime
Real TypeDB backend wrapping an internal band-tagged driver handle.

Enums§

CommitFailureCertainty
How confidently a failed commit can be classified without observing server state.
GivenValue
A single value bound to a given variable, band-agnostic and serializable.
QueryResult
Result of a query execution after conversion from TypeDB stream types.
RuntimeAnswerControl
Whether the answer consumer needs another driver item.
RuntimeAnswerItem
One item read from a TypeDB concept answer stream.
RuntimeAnswerKind
Provider answer kind, retained even for an empty stream.
RuntimeCommitError
A classified result available to recovery-aware internal commit callers.
RuntimeError
Runtime error type for direct TypeDB driver operations.
SecureConnectError
Error returned by typed secure connection and lifecycle entry points.
TlsMode
Canonical TLS policy for secure TypeDB connections.
TxType
Transaction type for TypeDB operations.

Constants§

PINNED_DRIVER_VERSION
The compile-pinned band-8 driver fork version resolved in Cargo.lock.
PINNED_DRIVER_VERSION_B9
The compile-pinned version of the upstream band-9 typedb-driver crate this runtime crate was built against.

Functions§

database_exists
Check whether a TypeDB database exists without creating it.
database_exists_secure
Check whether a TypeDB database exists using an explicit typed TLS policy.
delete_database_secure
Connect securely and delete a TypeDB database.
embedded_driver_versions
Return the driver versions compiled into this build, keyed by protocol band.
ensure_database_exists
Ensure a TypeDB database exists, creating it if absent.
ensure_database_exists_secure
Ensure a TypeDB database exists using an explicit typed TLS policy.

Type Aliases§

BoxFuture
Boxed future returned by async runtime methods.
Result
Convenience result alias for runtime operations.
SecureResult
Result alias for typed secure connection and lifecycle operations.