Skip to main content

Crate doublets

Crate doublets 

Source
Expand description

A doublets graph database library for working with associative link structures.

Doublets stores data as a graph of typed links, each represented as a triple (index, source, target). Two store implementations are provided:

  • unit::Store — a single-memory store for smaller graphs.
  • split::Store — a two-memory (data + index) store that separates link data from tree-index metadata for larger graphs.

§Quick start

ⓘ
use doublets::{unit, Doublets, DoubletsExt};
use mem::FileMapped;

let store = unit::Store::<u64, _>::new(FileMapped::from_path("db.links")?)?;

Re-exports§

pub use self::mem::parts;
pub use self::mem::split;
pub use self::mem::unit;
pub use self::data::CriterionMatcher;
pub use self::data::Doublet;
pub use self::data::Doublets;
pub use self::data::DoubletsExt;
pub use self::data::Error;
pub use self::data::Fuse;
pub use self::data::TargetMatcher;

Modules§

data
Core data types and traits for the doublets link model.
decorators
Decorators that add policy and transactions to any Doublets store.
mem
Memory layout and store implementations for doublets.
sequences
Store-backed sequences and UTF-16 strings compatible with Platform.Data.Doublets.Sequences 0.6.5.