Struct sql_from_models_parser::ast::Insert
source · pub struct Insert {
pub or: Option<SqliteOnConflict>,
pub table_name: ObjectName,
pub columns: Vec<Ident>,
pub overwrite: bool,
pub source: Box<Query>,
pub partitioned: Option<Vec<Expr>>,
pub after_columns: Vec<Ident>,
pub table: bool,
}
Fields§
§or: Option<SqliteOnConflict>
Only for Sqlite
table_name: ObjectName
TABLE
columns: Vec<Ident>
COLUMNS
overwrite: bool
Overwrite (Hive)
source: Box<Query>
A SQL query that specifies what to insert
partitioned: Option<Vec<Expr>>
partitioned insert (Hive)
after_columns: Vec<Ident>
Columns defined after PARTITION
table: bool
whether the insert has the table keyword (Hive)
Trait Implementations§
source§impl PartialEq for Insert
impl PartialEq for Insert
impl Eq for Insert
impl StructuralPartialEq for Insert
Auto Trait Implementations§
impl RefUnwindSafe for Insert
impl Send for Insert
impl Sync for Insert
impl Unpin for Insert
impl UnwindSafe for Insert
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more