pub struct RowAlias {
pub name: Option<Cow<'static, str>>,
pub columns: Vec<Cow<'static, str>>,
}Expand description
AS row_alias [(col_alias, …)], the name an INSERT’s new row is given
(MySQL 8.0.19).
It exists so that ON DUPLICATE KEY UPDATE can refer to the incoming values
by name instead of through the deprecated VALUES() function:
INSERT INTO t (a, b) VALUES (?, ?) AS `new` ON DUPLICATE KEY UPDATE b = `new`.bFields§
§name: Option<Cow<'static, str>>The row alias, quoted on output.
columns: Vec<Cow<'static, str>>Per-column aliases, quoted on output.
Implementations§
Trait Implementations§
Source§impl Expression for RowAlias
impl Expression for RowAlias
Source§impl HasRowAlias for RowAlias
impl HasRowAlias for RowAlias
Source§fn row_alias_mut(&mut self) -> &mut RowAlias
fn row_alias_mut(&mut self) -> &mut RowAlias
The row alias to set.
Auto Trait Implementations§
impl Freeze for RowAlias
impl RefUnwindSafe for RowAlias
impl Send for RowAlias
impl Sync for RowAlias
impl Unpin for RowAlias
impl UnsafeUnpin for RowAlias
impl UnwindSafe for RowAlias
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