Expand description
The Jammi data-plane client.
DataClient is the network peer of the embedded session for the data
verbs: SQL (over Flight SQL), embeddings / encode / search, inference,
fine-tune submit + status, the eval verbs, the trigger publish / subscribe
surface, and audit. It composes a jammi_admin::CatalogClient over the
same jammi_wire::SessionTransport for the control verbs and the tenant
trio, so a tenant bound through bind_tenant is observed by every data verb
on the same session id. It is candle-free — it speaks the gRPC + Flight SQL
wire only and pulls no embedded engine.
Three properties make it interchangeable with the embedded session:
- Faithful errors. Every failure decodes the structured
jammi_wiredetail the server attaches, so a verb returns the exactjammi_db::error::JammiErrorvariant the in-process path would — never a lossy gRPC-code-category guess. - Tenant over the wire. The tenant trio rides the composed
CatalogClient; the binding is keyed by the session id every verb carries in theSESSION_HEADER. - Shared conversions. Request encode / response decode reuse the
jammi_wireconversions the server’s receive side uses.
Structs§
- Data
Client - A data-plane client backed by a remote engine over gRPC + Flight SQL.