osirisdb 0.7.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
11
12
use crate::ast::*;

/// The source of rows to insert in an `INSERT` statement.
#[derive(Debug, Clone, PartialEq)]
pub enum InsertSource {
    /// Explicit row literals containing expressions (`VALUES (1, 'alice'), (2, 'bob')`).
    Values(Vec<Vec<Expr>>),
    /// Rows loaded from a nested SELECT query result set (`INSERT INTO ... SELECT ...`).
    Select(Box<SelectStmt>),
    /// Insert a single row filled entirely with default values (`DEFAULT VALUES`).
    DefaultValues,
}