tablestg 0.4.21

Storage for database tables
Documentation
//! This crate is not yet entirely stable.
//!
//! [table::Table] stores [Value]s which have a specific [DataType].

/// [table::Table] stores [Value]s which have a specific [DataType].
pub mod table;

/// Generic [Value]s.
pub mod value;
use value::Value;

/// [DataType] - describes, encodes and decodes [Value]s.
pub mod datatype;
use datatype::{DataType,LazyItem,MSPX,SPX};

/// [PageSet] - keeps track of changed pages that need saving.
pub mod pageset;
use pageset::{PData, PageSet};

// Remaining modules are private.

/// [Store] - maps keys to variable size values (no size restriction) using 64 bit hash.
mod store;
use store::{Store,StoreIter, SData};

/// [VBuckMap] - maps keys to small variable size values using 64 bit hash. For possibly large values see [Store].
mod vbuckmap;
use vbuckmap::{IdVKey,VBuckMap,VBuckMapInfo,VBuckMapIter,VKey};

/// List of pages implemented as tree for [VBuckMap].
mod pagetree;

/// Bucket for [VBuckMap].
mod vbucket;
use vbucket::{Pos,Reader,Writer};

/// Standard page size ( for pagetree ).
const PAGE_SIZE: u64 = 3952;

pub use atom_file::{Arc,Data};

use pstd::localalloc::Local;
/// `StringA<Local>`
pub type LString = pstd::StringA<Local>;
/// `VecA<T, Local>`
pub type LVec<T> = pstd::VecA<T, Local>;
/// `BoxA<T, Local>`
pub type LBox<T> = pstd::BoxA<T, Local>;
/// `RcA<T, Lpcal>`
pub type LRc<T> = pstd::RcA<T, Local>;

mod test;