Skip to main content

indicatrix_vault/
lib.rs

1//! `indicatrix-vault`: plain data models, a SQLite-backed store, and local import/export
2//! for the user's own faceting-design library.
3//!
4//! The storage layer and nothing more: no network client, no HTML/SVG parsing, no OCR.
5//! The dependency direction is strictly one way -- anything that acquires designs
6//! depends on this crate's [`model`] and [`db`], never the reverse.
7//!
8//! - [`db`]: SQLite storage and schema migrations. The schema is deliberately wider
9//!   than this crate itself fills -- columns like `page_url`/`pdf_file` are just
10//!   columns, and an existing `facet_diagrams.sqlite`, however it was populated, keeps
11//!   opening and keeps every value it already holds.
12//! - [`model`]: `FacetingDiagramDetail`, `AngleSetting`, `AttachedFile`, search/range
13//!   filters.
14//! - [`local`]: import/export for the user's own `.asc` files (via `indicatrix_formats::asc`),
15//!   independent of any online source.
16
17/// SQLite storage and schema migrations -- see [`db::sqlite::Database`].
18pub mod db;
19/// Import/export for the user's own `.asc` files, independent of any online source.
20///
21/// See [`local::import_asc`]/[`local::reconstruct_asc_schedule`].
22pub mod local;
23/// Plain data models: `FacetingDiagramDetail`, `AngleSetting`, `AttachedFile`, search/
24/// range filters.
25pub mod model;