| Crates.io | toondb-query |
| lib.rs | toondb-query |
| version | 0.3.4 |
| created_at | 2026-01-01 03:42:22.362819+00 |
| updated_at | 2026-01-08 05:54:30.333999+00 |
| description | ToonDB query engine (sync-first execution and vector query planning) |
| homepage | https://toondb.dev |
| repository | https://github.com/toondb/toondb |
| max_upload_size | |
| id | 2015709 |
| size | 1,085,287 |
Query planning and execution engine for ToonDB.
toondb-query provides the query layer for ToonDB, featuring:
[dependencies]
toondb-query = "0.2.5"
Most users should use the high-level toondb crate:
use toondb::{Database, Query};
let db = Database::open("./my_data")?;
// Query with builder pattern
let results = db.query("users")
.filter("age", ">", 21)
.select(&["name", "email"])
.order_by("name")
.limit(10)
.execute()?;
// Results in token-efficient TOON format
println!("{}", results.to_toon());
// users[3]{name,email}: Alice,alice@...|Bob,bob@...|Carol,carol@...
┌──────────────┐
│ Query │ User query (builder or path)
└──────┬───────┘
│
▼
┌──────────────┐
│ Parse │ Validate and normalize
└──────┬───────┘
│
▼
┌──────────────┐
│ Optimize │ Pushdown filters, projections
└──────┬───────┘
│
▼
┌──────────────┐
│ Execute │ Scan, filter, project, sort
└──────┬───────┘
│
▼
┌──────────────┐
│ Format │ TOON or JSON output
└──────────────┘
| Crate | Purpose |
|---|---|
toondb |
High-level client API (start here) |
toondb-core |
Core types and traits |
toondb-storage |
Storage engine with WAL |
toondb-index |
HNSW vector indexing |
toondb-query |
Query execution (this crate) |
Apache-2.0 - see LICENSE for details.