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
use crate::{ast::ObjectName, common::symbol::Symbol};

impl ObjectName {
    pub fn resolve_schema_table(&self, default_schema: Symbol) -> (Symbol, Symbol) {
        match self.0.as_slice() {
            [table] => (default_schema, *table),
            [schema, table] => (*schema, *table),
            _ => panic!("unsupported: db.schema.table not yet supported"),
        }
    }
}