12 releases (5 breaking)
Uses new Rust 2024
| 0.8.5-alpha | Dec 3, 2025 |
|---|---|
| 0.8.3-alpha | Nov 27, 2025 |
| 0.7.0-alpha | Nov 5, 2025 |
| 0.6.0-alpha | Oct 31, 2025 |
| 0.3.5-alpha | Oct 20, 2025 |
#598 in Database implementations
Used in 5 crates
(3 directly)
2.5MB
57K
SLoC
Query execution runtime for LLKV.
This crate provides the runtime API (see RuntimeEngine) for executing SQL plans with full
transaction support. It coordinates between the transaction layer, storage layer,
and query executor to provide a complete database runtime.
Key Components
RuntimeEngine: Main execution engine for SQL operationsRuntimeSession: Session-level interface with transaction managementTransactionContext: Single-transaction execution context- Table Provider: Integration with the query executor for table access
Transaction Support
The runtime supports both:
- Auto-commit: Single-statement transactions (uses
TXN_ID_AUTO_COMMIT) - Multi-statement: Explicit BEGIN/COMMIT/ROLLBACK transactions
MVCC Integration
All data modifications automatically include MVCC metadata:
row_id: Unique row identifiercreated_by: Transaction ID that created the rowdeleted_by: Transaction ID that deleted the row (orTXN_ID_NONE)
The runtime ensures these columns are injected and managed consistently.
LLKV Runtime
llkv-runtime coordinates the end-to-end execution of SQL statements for the LLKV database toolkit. It bridges plans, storage, and MVCC so the higher-level SQL engine can remain stateless.
This crate is not intended for direct standalone use.
License
Licensed under the Apache-2.0 License.
Dependencies
~35MB
~559K SLoC