Skip to main content

Crate lora_database

Crate lora_database 

Source
Expand description

In-memory Lora database — the database-facing orchestration layer.

lora-database owns the parse → analyze → compile → execute pipeline and exposes a single Database entry point that transports (HTTP, benches, examples, embedded callers) can drive without knowing about the underlying crates.

§Quick start

use lora_database::Database;

let db = Database::in_memory();
db.execute("CREATE (:User {name: 'alice'})", None).unwrap();

Structs§

Database
Owns the graph store and orchestrates parse → analyze → compile → execute.
ExecuteOptions
InMemoryGraph
SnapshotMeta
Metadata reported by save_snapshot / load_snapshot. Kept small and stable so callers can log / diff it without reflecting on the payload.

Enums§

LoraValue
QueryResult
ResultFormat
SnapshotError
Errors produced by the snapshot codec.

Traits§

QueryRunner
Minimal abstraction any transport can depend on to run Lora queries.
SnapshotAdmin
Storage-agnostic admin surface for HTTP / binding callers that want to drive snapshot operations without naming the backend type parameter.
Snapshotable
A backend that can serialize its state to a byte stream and restore from one.

Functions§

parse_query