tablestg 0.4.22

Storage for database tables
Documentation
//! This crate is not yet reliable or 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};

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

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

// Remaining modules are private.

/// 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;

// Basic data types.

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;