pub enum SetVariable<'a> {
Named(QualifiedName<'a>),
User {
at_span: Span,
name: Identifier<'a>,
},
System {
global: Option<Span>,
session: Option<Span>,
dot_span: Span,
name: Identifier<'a>,
},
SystemBare {
at_at_span: Span,
name: Identifier<'a>,
},
}Expand description
The target name of a SET assignment
Variants§
Named(QualifiedName<'a>)
Plain (possibly qualified) identifier, e.g. SET \x` = 1` inside stored routines
User
User-defined variable: SET @name = expr
System
System variable with explicit scope qualifier: SET @@GLOBAL.name = expr or SET @@SESSION.name = expr
SystemBare
System variable without explicit scope: SET @@name = expr
Trait Implementations§
Source§impl<'a> Clone for SetVariable<'a>
impl<'a> Clone for SetVariable<'a>
Source§fn clone(&self) -> SetVariable<'a>
fn clone(&self) -> SetVariable<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SetVariable<'a>
impl<'a> Debug for SetVariable<'a>
Auto Trait Implementations§
impl<'a> Freeze for SetVariable<'a>
impl<'a> RefUnwindSafe for SetVariable<'a>
impl<'a> Send for SetVariable<'a>
impl<'a> Sync for SetVariable<'a>
impl<'a> Unpin for SetVariable<'a>
impl<'a> UnsafeUnpin for SetVariable<'a>
impl<'a> UnwindSafe for SetVariable<'a>
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