holocron 0.5.0

Declarative schema & query compiler — one YAML as the source of truth for SQL schema and a type-checked query catalog.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::catalog::data_type::CatalogType;

/// A resolved column in the catalog: its name, type, nullability, and the
/// per-column query policy resolved from view select-item flags (or the
/// defaults applied to table columns).
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct CatalogColumn {
    pub name: String,
    pub data_type: CatalogType,
    /// `true` if the column permits NULL.
    pub nullable: bool,
    /// `true` if queries may filter on this column.
    pub filterable: bool,
    /// `true` if free-text search includes this column.
    pub searchable: bool,
}