modelvault-core 0.15.0

Core engine for ModelVault — application-focused embedded storage with model schemas, validation, and migrations.
Documentation

modelvault-core

CI crates.io Docs

Core engine for ModelVault — an application-focused embedded database: model-driven schemas, validation on write, indexes, migrations, and single-file storage. Read paths use &self on Database; cross-thread sharing is enforced in bindings (RwLock in Python / async facade), not inside this crate alone.

Most applications should use the modelvault facade instead.

Documentation: modelvault.readthedocs.io · rustdoc: docs.rs/modelvault-core

Why ModelVault Product positioning
On-disk format File layout (advanced)
Compatibility Format contracts

Install

[dependencies]
modelvault-core = "0.15"

Optional tracing: modelvault-core = { version = "0.15", features = ["tracing"] }

Example

cargo run -p modelvault --example open   # facade demo
use modelvault_core::prelude::*;

fn main() -> Result<(), DbError> {
    let db = Database::open_in_memory()?;
    println!("opened: {}", db.path().display());
    Ok(())
}

When to depend on this crate

  • Operational tools on the engine (inspect, verify, migrate)
  • Minimal dependency graph without proc-macros
  • Types the facade does not re-export

License

MIT — LICENSE