Skip to main content

Crate jammi_client

Crate jammi_client 

Source
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_wire detail the server attaches, so a verb returns the exact jammi_db::error::JammiError variant 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 the SESSION_HEADER.
  • Shared conversions. Request encode / response decode reuse the jammi_wire conversions the server’s receive side uses.

Structs§

DataClient
A data-plane client backed by a remote engine over gRPC + Flight SQL.