Expand description
Unified database facade for LaminarDB.
Provides a single entry point (LaminarDB) that ties together
the SQL parser, query planner, DataFusion context, and streaming API.
§Example
ⓘ
use laminar_db::LaminarDB;
let db = LaminarDB::open()?;
db.execute("CREATE SOURCE trades (
symbol VARCHAR, price DOUBLE, ts BIGINT,
WATERMARK FOR ts AS ts - INTERVAL '1' SECOND
)").await?;
let query = db.execute("SELECT symbol, AVG(price)
FROM trades GROUP BY symbol, TUMBLE(ts, INTERVAL '1' MINUTE)
").await?;Re-exports§
pub use checkpoint_coordinator::CheckpointConfig;pub use checkpoint_coordinator::CheckpointCoordinator;pub use checkpoint_coordinator::CheckpointPhase;pub use checkpoint_coordinator::CheckpointResult;pub use checkpoint_coordinator::CheckpointStats;pub use checkpoint_coordinator::WalPrepareResult;pub use profile::Profile;pub use profile::ProfileError;pub use recovery_manager::RecoveredState;pub use recovery_manager::RecoveryManager;
Modules§
- checkpoint_
coordinator - Unified checkpoint coordination. Unified checkpoint coordinator.
- pipeline
- Thread-per-core connector pipeline. Thread-per-core connector pipeline.
- profile
- Deployment profiles.
Deployment profiles for
LaminarDB. - recovery_
manager - Unified recovery manager. Unified recovery manager.
Structs§
- Connector
Registry - Re-export the connector registry for custom connector registration. Registry of available connector implementations.
- DdlInfo
- Information about a completed DDL statement.
- Laminar
Config - Configuration for a
LaminarDBinstance. - LaminarDB
- The main
LaminarDBdatabase handle. - Laminar
DbBuilder - Fluent builder for constructing a
LaminarDBinstance. - Pipeline
Counters - Shared atomic counters incremented by the pipeline processing loop.
- Pipeline
Edge - A directed edge in the pipeline topology graph.
- Pipeline
Metrics - Pipeline-wide metrics snapshot.
- Pipeline
Node - A node in the pipeline topology graph.
- Pipeline
Topology - The complete pipeline topology: nodes and edges.
- Query
Handle - Handle to a running streaming query.
- Query
Info - Information about a running query.
- Sink
Info - Information about a registered sink.
- Source
Catalog - Catalog of registered sources, sinks, streams, and queries.
- Source
Entry - A registered source in the catalog.
- Source
Handle - Typed handle for pushing data into a registered source.
- Source
Info - Information about a registered source.
- Source
Metrics - Metrics for a single registered source.
- Stream
Info - Metadata about a registered stream.
- Stream
Metrics - Metrics for a single registered stream.
- Tiering
Config - S3 storage class tiering configuration.
- Typed
Subscription - Typed subscription that deserializes
RecordBatchrows. - Untyped
Source Handle - Untyped handle for pushing raw
RecordBatchdata.
Enums§
- DbError
- Errors from database operations.
- Execute
Result - Result of executing a SQL statement.
- Identifier
Case Sensitivity - SQL identifier case sensitivity mode.
- Pipeline
Node Type - Type of a node in the pipeline topology.
- Pipeline
State - The state of a streaming pipeline.
Traits§
- From
Batch - Trait for types that can be deserialized from a
RecordBatch.