fosk 0.1.9

In-memory SQL-like query engine and lightweight data store for testing and prototyping.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{parser::ast::ScalarExpr, JsonPrimitive};

#[derive(Debug, Clone)]
pub struct AnalyzedIdentifier {
    pub expression: ScalarExpr,     // qualified & folded
    pub alias: Option<String>,
    pub ty: JsonPrimitive,
    pub nullable: bool,
    /// Final, stable name of this projected column (unique within the SELECT list).
    /// - alias if present
    /// - else bare column name if unique, otherwise qualified "tbl.col"
    /// - else default expr name, with _1, _2… suffix to resolve collisions
    pub output_name: String,
}