Native bindings #
Thin @[extern] declarations over ffi/typedb_lean.c. Every function returns the driver's
error as a NativeError in the same call, because the driver keeps its last error in
thread-local state. Handles are external objects: dropping the last reference releases them,
and the explicit close functions release them early.
This module is internal; TypeDB.Driver, TypeDB.Tx and TypeDB.Query wrap it.
An error reported by the driver: its code (CXN05, TQL03, …) and message. Codes starting
with TDBLEAN come from the shim itself.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
An open driver connection.
Instances For
An open transaction, with the query options it runs queries with.
Instances For
A stream of concept rows; valid only while its transaction is open.
Instances For
Instances For
A stream of JSON documents from a fetch; valid only while its transaction is open.
Instances For
What a query answered. Constructor order is mirrored by the shim.
- ok : RawAnswer
- rows (it : RowsHandle) : RawAnswer
- docs (it : DocsHandle) : RawAnswer
Instances For
Equations
Instances For
Opens a connection. An empty rootCA with tls uses the system's root certificates. A
timeoutMs of 0 keeps the driver's default request timeout.
kind 0 is the full schema, 1 the type schema only.
type is 0 read, 1 write, 2 schema; a timeoutMs or prefetch of 0 keeps the default.
Commits and releases the transaction, whatever the outcome.
Closes the transaction without committing and releases it, without waiting for the driver to
finish closing it (like the Rust driver's drop). Idempotent.
Waits until every transaction closed so far has finished closing.
Pulls up to k rows and returns the concepts of cols in each, in one native call. A result
shorter than k means the stream is exhausted (and already released).
Column flags: read the concept's type label.
Equations
Instances For
Column flags: read the instance's IID.