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

/// Represents filter or parameter options for a `CREATE TABLESPACE` statement.
///
/// This AST node captures the parameters for creating a new tablespace,
/// corresponding to `CREATE TABLESPACE name [ OWNER user_name ] LOCATION 'directory' [ WITH ( tablespace_option = value [, ... ] ) ]`.
#[derive(Debug, Clone, PartialEq)]
pub struct CreateTablespaceStmt {
    /// The name of the tablespace to create.
    pub name: Symbol,
    /// Optional role name of the user who will own the new tablespace.
    pub owner: Option<Symbol>,
    /// The directory location where the tablespace will be stored.
    pub location: Symbol,
    /// Optional tablespace configuration options specified in the `WITH` clause.
    pub options: Vec<SqlOption>,
}