Skip to main content

lora_database/
lib.rs

1//! In-memory Lora database — the database-facing orchestration layer.
2//!
3//! `lora-database` owns the parse → analyze → compile → execute pipeline
4//! and exposes a single [`Database`] entry point that transports (HTTP,
5//! benches, examples, embedded callers) can drive without knowing about the
6//! underlying crates.
7//!
8//! # Quick start
9//!
10//! ```no_run
11//! use lora_database::Database;
12//!
13//! let db = Database::in_memory();
14//! db.execute("CREATE (:User {name: 'alice'})", None).unwrap();
15//! ```
16
17mod database;
18
19pub use database::{Database, QueryRunner};
20
21// Re-export the core execution types so callers don't need a direct
22// dependency on `lora-executor`.
23pub use lora_executor::{ExecuteOptions, LoraValue, QueryResult, ResultFormat};
24
25// Re-export the default in-memory backing store so callers only need to
26// depend on `lora-database` for the happy path.
27pub use lora_store::InMemoryGraph;
28
29// Standalone parsing entry point (does not require building a `Database`).
30pub use lora_parser::parse_query;