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::*;

/// Represents a DDL statement to quickly empty tables (`TRUNCATE TABLE`).
#[derive(Debug, Clone, PartialEq)]
pub struct TruncateStmt {
    /// The qualified names of the tables to truncate.
    pub tables: Vec<ObjectName>,
    /// If `true`, sequence generators owned by columns of the tables are restarted (`RESTART IDENTITY`).
    pub restart_identity: bool,
    /// Optional cascade/restrict behavior for dropping associated data dependency objects.
    pub behaviour: Option<DropBehavior>,
}