Expand description
App-facing KalamDB client crate.
This is the preferred Rust client surface for applications. It wraps the
shared link-common implementation with lighter default features than the
full compatibility surface that previously lived at the root of link/.
Modules§
- auth
- Authentication provider and models for KalamDB client.
- client
- Main KalamDB client with builder pattern.
- compression
- WebSocket message decompression utilities
- credentials
- Credential storage abstraction for KalamDB clients.
- error
- Error types for KalamDB SDK client operations.
- event_
handlers - Connection lifecycle event handlers for KalamDB client.
- models
- Data models shared by the KalamDB SDK.
- query
- SQL query execution with HTTP transport.
- seq_
tracking - Sequence ID tracking helpers for subscriptions.
- subscription
- WebSocket subscription management for real-time updates.
- timeouts
- Timeout configuration for KalamDB client operations.
- timestamp
- Timestamp formatting utilities for KalamDB.
Structs§
- Cluster
Health Response - Cluster health response from the server.
- Cluster
Node Health - Per-node health details from the cluster health endpoint.
- Connection
Error - Error information passed to the
on_errorhandler. - Connection
Options - Connection-level options for the WebSocket/HTTP client.
- Credentials
- Stored credentials for a KalamDB instance.
- Disconnect
Reason - Reason for a disconnect event.
- Error
Detail - Error details for failed SQL execution
- Event
Handlers - Connection lifecycle event handlers.
- FileRef
- File reference stored as JSON in FILE columns.
- Health
Check Response - Health check response from the server.
- Kalam
Cell Value - A single cell value in a query result row or subscription notification.
- Kalam
Link Client - Main KalamDB client.
- Kalam
Link Timeouts - Timeout configuration for KalamDB client operations.
- Kalam
Link Timeouts Builder - Builder for creating custom
KalamLinkTimeoutsconfigurations. - Live
Rows Config - Configuration for live-query row materialization.
- Live
Rows Materializer - Stateful reducer that materializes the current row set from change events.
- Live
Rows Subscription - High-level subscription that yields materialized live-query row snapshots.
- Login
Request - Login request body for authentication
- Login
Response - Login response from the server
- Login
User Info - User information returned in login response
- Memory
Credential Store - In-memory credential store for testing and temporary use.
- Query
Executor - Handles SQL query execution via HTTP.
- Query
Request - Request payload for SQL query execution.
- Query
Response - Contains query results, execution metadata, and optional error information. Matches the server’s SqlResponse structure.
- Query
Result - Individual query result within a SQL response.
- Schema
Field - A field in the result schema returned by SQL queries
- SeqId
- Sequence ID for MVCC versioning
- Server
Setup Request - Server setup request body
- Server
Setup Response - Server setup response body
- Setup
Status Response - Server setup status response
- Setup
User Info - User info returned in setup response
- SqlSubscription
Descriptor - Nested subscription metadata returned by
SUBSCRIBE TOover SQL HTTP. - SqlSubscription
Row - Single-row payload returned for
SUBSCRIBE TOvia/v1/api/sql. - Subscription
Config - Configuration for establishing a WebSocket subscription.
- Subscription
Info - Read-only snapshot of an active subscription’s metadata.
- Subscription
Manager - Manages WebSocket subscriptions for real-time change notifications.
- Subscription
Options - Options for live query subscriptions.
- Timestamp
Formatter - Timestamp formatter for converting millisecond timestamps to strings.
- Upload
Progress - Upload progress information for a single file.
- UserId
- Type-safe wrapper for user identifiers.
Enums§
- Auth
Provider - Authentication credentials for KalamDB server.
- Change
Event - Change event received via WebSocket subscription.
- Field
Flag - Http
Version - HTTP protocol version to use for connections.
- Kalam
Data Type - Unified data type enum with wire format tags
- Kalam
Link Error - Errors that can occur during KalamDB SDK operations.
- Live
Rows Event - High-level event emitted by a materialized live-query subscription.
- Message
Direction - Direction of a message (for
on_receive/on_senddebug hooks). - Resolved
Auth - Resolves the effective
AuthProviderfor a connection. - Role
- Enum representing user roles in KalamDB.
- SqlSubscription
Status - Status values returned by
SUBSCRIBE TOover the SQL HTTP API. - Timestamp
Format - Timestamp format options.
Constants§
Traits§
- Credential
Store - Trait for credential storage backends.
- Dynamic
Auth Provider - Async authentication provider called on every connect or reconnect.
Functions§
- now
- Get current timestamp in milliseconds (compatible with KalamDB).
- parse_
i64 - Parse an i64 from a
KalamCellValuethat might be a Number or a String. - parse_
iso8601 - Parse ISO 8601 string back to milliseconds.
Type Aliases§
- ArcDyn
Auth Provider - A boxed, reference-counted
DynamicAuthProvider. - Auth
Refresh Callback - Async callback that resolves fresh
AuthProvidercredentials. - Field
Flags - Query
Upload File - Borrowed file upload tuple used by query helpers.
- Result
- Result type alias using
KalamLinkError - RowData
- Type alias for a subscription row — named columns.
- Upload
Progress Callback - Progress callback for multipart file uploads.