quill_sql/plan/logical_plan/
delete.rs

1use crate::catalog::SchemaRef;
2use crate::expression::Expr;
3use crate::utils::table_ref::TableReference;
4
5#[derive(derive_new::new, Debug, Clone)]
6pub struct Delete {
7    /// Target table reference
8    pub table: TableReference,
9    /// Cached schema for the table heap
10    pub table_schema: SchemaRef,
11    /// Optional predicate bound during planning
12    pub selection: Option<Expr>,
13}
14
15impl std::fmt::Display for Delete {
16    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
17        write!(f, "Delete: {}", self.table)
18    }
19}