ckb_freezer/lib.rs
//! Freezer is an memory mapped append-only database to store immutable chain data into flat files
mod freezer;
mod freezer_files;
#[cfg(test)]
mod tests;
use ckb_error::{Error, InternalErrorKind};
use std::fmt::{Debug, Display};
fn internal_error<S: Display + Debug + Sync + Send + 'static>(reason: S) -> Error {
InternalErrorKind::Database.other(reason).into()
}
pub use freezer::Freezer;
pub use freezer_files::FreezerFilesBuilder;