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
//! PostgreSQL's convenience aliases: the family's types with the dialect named once, in the path.
//!
//! An alias is not a new type, so a value crosses between the two spellings by assignment — and a
//! parameter the module does not fix crosses with it:
//!
//! ```
//! use ingraph::comparison::sql::{SqlListComparison, SqlScalarComparison, postgres};
//!
//! let full = SqlListComparison::<i64, SqlScalarComparison<i64, sqlx::Postgres>, sqlx::Postgres>::new();
//! let aliased: postgres::ListComparison<i64, postgres::ScalarComparison<i64>> = full;
//! assert!(aliased.is_empty());
//! ```
//!
//! What is on this shelf, and the rule that decides it, is `dialect_aliases!` in the parent module.

dialect_aliases!(sqlx::Postgres, "PostgreSQL");

/// `SqlDurationComparison` on PostgreSQL — an `INTERVAL` column.
///
/// Outside `dialect_aliases!` because the kind is not on all three dialects: SQLite has no duration,
/// and its module says so rather than offering a name for one.
#[cfg(feature = "jiff")]
pub type DurationComparison<V> = super::SqlDurationComparison<V, sqlx::Postgres>;

#[cfg(test)]
mod tests;