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
use crate::ast::enum_type::EnumType;
use crate::ast::table::Table;
use crate::ast::view::View;

/// A whole parsed schema file: the top-level `types`/`tables`/`views` lists.
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct SchemaDocument {
    pub types: Vec<EnumType>,
    pub tables: Vec<Table>,
    pub views: Vec<View>,
}