rusty_anchor

Crates.iorusty_anchor
lib.rsrusty_anchor
version0.1.1
created_at2026-01-13 12:46:35.734385+00
updated_at2026-01-16 11:33:09.9449+00
descriptionBitemporal anchor-style database helper library backed by SQLite.
homepage
repositoryhttps://github.com/davidhmays/rusty_anchor
max_upload_size
id2040053
size26,556
Dave Mays (davidhmays)

documentation

README

NOTE:

  • This library is not yet complete. It has been published to Cargo.io at this point as a personal exercise in learning how to use Cargo and is not yet complete.

Rusty Anchor

A generic anchor-style, bitemporal database helper for SQLite written in Rust.

This crate is an experiment in providing reusable building blocks for modeling anchors, attributes, and ties using an append-only, bitemporal schema inspired by anchor modeling.

It's designed to be used as a library embedded inside other Rust projects such as scrapers or data stores to simplify some of the repetition required when anchor modeling and linking up various attribute tables.

Features

  • SQLite-backed storage (via rusqlite)
  • Anchor-style modeling:
    • Anchors (entities)
    • Attributes (time-varying facts)
    • Ties (relationships between anchors)
  • Attribute level history
  • Cardinality support (One vs Many)
  • Explicit schema definitions (define once, insert many)
  • Designed for future bitemporal extensions
  • No domain assumptions

Non-Goals

  • NOT an ORM.

Notice

I've been working on this as a personal learning project, to explore the limitations of bitemporality, 6th normal form, and SQLte, and it is not yet intended for production use by others.

How to use

  • TBD
Commit count: 3

cargo fmt