1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use std::any::Any; use std::collections::HashMap; use crate::Field; pub type SetValue = HashMap<Field, Box<dyn Any>>; pub struct UpdateClause { pub table_name: String, pub values: SetValue, } impl Default for UpdateClause { fn default() -> Self { Self { table_name: "".to_owned(), values: HashMap::new(), } } }