Skip to main content

Crate mangle_db

Crate mangle_db 

Source
Expand description

§Mangle DB

Persistent fact stores for Mangle, providing EDB sources, IDB caching, and a Database abstraction that manages compilation, execution, and query serving.

Re-exports§

pub use backend::CacheMeta;
pub use backend::IdbBackend;
pub use backend::IdbSnapshot;
pub use database::Database;
pub use database::DatabaseConfig;
pub use database::IdbMode;
pub use database::RecomputeStrategy;
pub use database::StoreBackend;
pub use file_backend::FileIdbBackend;
pub use file_source::FileEdbSource;
pub use provenance::Derivation;
pub use provenance::FactKey;
pub use provenance::ProvenanceIndex;
pub use source::EdbSource;
pub use source::Fingerprint;
pub use source::RelationInfo;

Modules§

backend
IDB backend trait and supporting types for persistent IDB caching.
database
The Database abstraction: compiles a Mangle program, loads EDB facts, executes the program, and serves queries from the resulting store.
file_backend
File-based IDB backend: stores cached IDB snapshots as simplerow files.
file_source
File-based EDB source: reads .mgr (simplerow) and .mg (Mangle source) files.
provenance
Provenance tracking and the DRed (Delete/Re-derive) algorithm for incremental IDB maintenance.
simplerow
SimpleRow format: a row-oriented fact file format using Mangle syntax.
source
EDB source trait and supporting types.