13 releases (6 breaking)

Uses new Rust 2024

new 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.2.0-alpha Oct 3, 2025

#507 in Database implementations

Download history 116/week @ 2025-09-29 47/week @ 2025-10-06 191/week @ 2025-10-13 498/week @ 2025-10-20 60/week @ 2025-10-27 14/week @ 2025-11-03 33/week @ 2025-11-10 23/week @ 2025-11-17 11/week @ 2025-11-24

81 downloads per month
Used in 12 crates (7 directly)

Apache-2.0

420KB
9K SLoC

Planner data structures shared between SQL parsing and execution.

The crate exposes:

  • plan_graph for the serialized DAG representation exchanged with tooling.
  • plans for high-level logical plan structures emitted by the SQL layer.
  • validation helpers that enforce naming and schema invariants while plans are being assembled.
  • conversion utilities for converting SQL AST nodes to Plan types.
  • traversal generic iterative traversal utilities for deeply nested ASTs.

Modules are re-exported so downstream crates can use llkv_plan::* when they only need a subset of the functionality.


LLKV Plan

llkv-plan defines the typed plan surface that bridges parsed SQL and LLKV runtime execution. It organizes statement plans, expression programs, and subquery metadata so lower layers can execute without re-parsing SQL.

This crate is not intended for direct standalone use.

License

Licensed under the Apache-2.0 License.

Dependencies

~26MB
~465K SLoC