quill-sql 0.2.1

An educational Rust relational database (RDBMS) inspired by CMU 15445
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::utils::table_ref::TableReference;

#[derive(Debug, Clone)]
pub struct DropTable {
    pub name: TableReference,
    pub if_exists: bool,
}

impl std::fmt::Display for DropTable {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        if self.if_exists {
            write!(f, "DropTable IF EXISTS: {}", self.name)
        } else {
            write!(f, "DropTable: {}", self.name)
        }
    }
}