quill_sql/plan/logical_plan/
update.rs1use crate::catalog::SchemaRef;
2use crate::expression::Expr;
3use crate::utils::table_ref::TableReference;
4use std::collections::HashMap;
5
6#[derive(derive_new::new, Debug, Clone)]
7pub struct Update {
8 pub table: TableReference,
9 pub table_schema: SchemaRef,
10 pub assignments: HashMap<String, Expr>,
11 pub selection: Option<Expr>,
12}
13
14impl std::fmt::Display for Update {
15 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16 write!(f, "Update: {}", self.table,)
17 }
18}