mangle_db/lib.rs
1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! # Mangle DB
16//!
17//! Persistent fact stores for Mangle, providing EDB sources, IDB caching,
18//! and a `Database` abstraction that manages compilation, execution, and
19//! query serving.
20
21pub mod backend;
22pub mod database;
23pub mod file_backend;
24pub mod file_source;
25pub mod provenance;
26pub mod simplerow;
27pub mod source;
28
29#[cfg(feature = "disk")]
30pub mod disk_store;
31
32pub use backend::{CacheMeta, IdbBackend, IdbSnapshot};
33pub use database::{Database, DatabaseConfig, IdbMode, RecomputeStrategy, StoreBackend};
34pub use file_backend::FileIdbBackend;
35pub use file_source::FileEdbSource;
36pub use provenance::{Derivation, FactKey, ProvenanceIndex};
37pub use source::{EdbSource, Fingerprint, RelationInfo};