ingraph 0.1.0

A declaration-driven indexing framework: records and nodes are written as Rust types, and the storage rows, the dataflow between them and the GraphQL query surface are emitted from the declaration.
Documentation
//! What the map ANSWERS, at the two readings that answer differently — and the identity that keeps a
//! scalar's cursor where it was.

use crate::{
  ToOrderLeaves,
  marker::{ScalarMarker, StringMarker},
};

#[cfg(feature = "mediatime")]
mod citizen;

#[test]
fn a_flat_reading_answers_with_the_value_itself_at_every_leaf() {
  // The whole content of the scalar row, and the reason a scalar's cursor slot is exactly the type
  // it was before this map existed: one column, one leaf, and the leaf IS the value.
  assert_eq!(
    <ScalarMarker<i64> as ToOrderLeaves>::leaf(&7, 0),
    Some(7),
    "a scalar level's boundary is the scalar"
  );
  assert_eq!(
    <StringMarker<String> as ToOrderLeaves>::leaf(&"reel".to_owned(), 0),
    Some("reel".to_owned()),
  );
}