| Crates.io | llkv-expr |
| lib.rs | llkv-expr |
| version | 0.1.0-alpha |
| created_at | 2025-09-04 00:26:02.340948+00 |
| updated_at | 2025-09-04 00:26:02.340948+00 |
| description | Query expression AST for the LLKV toolset. |
| homepage | |
| repository | https://github.com/jzombie/rust-llkv |
| max_upload_size | |
| id | 1823408 |
| size | 15,781 |
Work in Progress
A buffer-level, allocator-friendly predicate AST over borrowed byte slices (&[u8]), built for the LLKV toolset.
This crate intentionally ships without an evaluator or planner.
Expressions can be used with llkv-table for querying.
Generic field IDs: Expr<'a, F> and Filter<'a, F> work with any F (e.g., u32, &'static str).
Logical composition: And(Vec<Expr>), Or(Vec<Expr>), Not(Box<Expr>).
Predicates over bytes:
Equals(&[u8])Range { lower: Bound<&[u8]>, upper: Bound<&[u8]> }GreaterThan, GreaterThanOrEquals, LessThan, LessThanOrEqualsIn(&[&[u8]]), StartsWith, EndsWith, ContainsErgonomic builders: Expr::all_of, Expr::any_of, Expr::not
Zero-copy friendly: operands are borrowed; no implicit allocation or decoding is performed here.
Licensed under the Apache-2.0 License.