Skip to main content

Crate mongreldb_client

Crate mongreldb_client 

Source
Expand description

mongreldb-client — a lightweight HTTP client for mongreldb-server.

Hardened surface:

Structs§

AiExecutionOptions
Cooperative execution limits accepted by every Kit AI endpoint.
AsyncMongrelClient
Async counterpart for Kit and health calls.
AsyncMongrelClientBuilder
Builder for an AsyncMongrelClient.
ColumnDefJson
ColumnMeta
ConstraintMeta
HistoryRetention
IndexMeta
KitAnnRerankHit
KitAnnRerankRequest
KitAnnRerankResponse
KitComponentScore
KitQueryRequest
A native typed query (POST /kit/query). conditions are raw JSON objects mirroring the daemon’s condition variants, e.g. {"pk": {"value": 2}}, {"range": {"column_id": 2, "lo": 0, "hi": 100}}, {"ann": {"column_id": 5, "query": [...], "k": 10}}.
KitQueryResponse
KitQueryRow
KitRetrieveRequest
KitRetrieveResponse
KitRetrieverHit
KitScore
KitSearchHit
KitSearchRequest
KitSearchResponse
KitSetSimilarityHit
KitSetSimilarityRequest
KitSetSimilarityResponse
KitTxnRequest
A typed atomic batch request for /kit/txn.
KitTxnResponse
MongrelClient
MongrelClientBuilder
Builder for a blocking MongrelClient. Authorization is installed as a sensitive default header, so every route uses it and debug output redacts it.
ProcedureCallRequest
ProcedureCallResponse
ProcedureRequest
ProcedureResponse
ProceduresResponse
RemoteOptions
RemoteQueryErrorBody
RemoteQueryErrorResponse
RemoteQueryOutcome
RemoteQueryStatus
RemoteSqlPage
RemoteSqlPageLimits
RemoteSqlPageMetadata
RemoteSqlQueryHandle
RemoteSqlReceipt
RemoteTerminalError
ReplicationFollower
A replication follower that polls a leader’s /wal/stream endpoint and applies WAL records to a local database directory via SharedWal::replay.
ServerCapabilities
SqlCancellationCapabilities
SqlClientOptions
SqlIdempotencyCapabilities
SqlPageOptions
SqlPaginationCapabilities
TableSchemaInfo
Server-side schema metadata for one table (subset of the server’s descriptor).
TriggerRequest
TriggerResponse
TriggersResponse
TxnOp

Enums§

ClientError
A typed client error. Network/IO failures and non-2xx HTTP responses both surface here; constraint violations from /kit/txn are decoded into the matching variant so callers can branch on them.
KitErrorCode
Typed error codes mirrored from the server’s Kit error envelope.
KitOp
One operation in a /kit/txn batch.
KitOpResult
A typed per-op result from /kit/txn.
KitVectorMetric
RemoteAuth
RemoteCancelOutcome
RemoteQueryErrorCode

Type Aliases§

ClientResult
RemoteSqlControlOptions
SecretString
Secret string type.