qraft-core 0.1.2

Core type system, query model, decoding, and SQL lowering primitives for qraft.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Hidden derive helpers layered on top of `quex::Row`.

/// Decodes a prefixed projection from a `quex::Row`.
pub trait FromPrefixedRow: Sized {
    /// Builds `Self` from columns named like `{prefix}field_name`.
    fn from_prefixed_row(row: &quex::Row, prefix: &str) -> quex::Result<Self>;
}

/// Decodes the pivot portion of a joined row from `quex::Row`.
pub trait FromPivotRow: Sized {
    /// Builds `Self` from `pivot_*` columns in a `quex::Row`.
    fn from_pivot_row(row: &quex::Row) -> quex::Result<Self>;
}