osirisdb 0.4.0

A SQL database engine built from scratch in Rust featuring a custom parser, binder, query planner, optimizer, catalog, and storage engine.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::ast::*;

/// Represents the definition of an SQL generated/computed column (e.g. `GENERATED ALWAYS AS (age * 2) STORED`).
#[derive(Debug, Clone, PartialEq)]
pub struct GeneratedColumn {
    /// The expression used to compute the column value.
    pub expr: Expr,
    /// If `true`, the value is calculated when rows are written and physically stored (`STORED`).
    pub stored: bool,
}