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
13
14
15
16
17
18
use crate::{ast::CreateSchemaStmt, common::symbol::Symbol};

#[derive(Debug, Clone, PartialEq)]
pub struct BoundCreateSchemaStmt {
    pub name: Option<Symbol>,
    pub authorization: Option<Symbol>,
    pub if_not_exists: bool,
}

impl From<BoundCreateSchemaStmt> for CreateSchemaStmt {
    fn from(b: BoundCreateSchemaStmt) -> Self {
        CreateSchemaStmt {
            name: b.name,
            authorization: b.authorization,
            if_not_exists: b.if_not_exists,
        }
    }
}