pub struct ShowVariables<'a> {
pub show_span: Span,
pub variables_span: Span,
pub global_span: Option<Span>,
pub session_span: Option<Span>,
pub like: Option<SString<'a>>,
pub where_expr: Option<Expression<'a>>,
}Expand description
Parse result for SHOW VARIABLES
let sql = "SHOW VARIABLES LIKE 'max_%';";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
match stmts.pop() {
Some(Statement::ShowVariables(s)) => {
// s.pattern contains the LIKE expression
}
_ => panic!("expected ShowVariables"),
}Fields§
§show_span: Span§variables_span: Span§global_span: Option<Span>§session_span: Option<Span>§like: Option<SString<'a>>§where_expr: Option<Expression<'a>>Trait Implementations§
Source§impl<'a> Clone for ShowVariables<'a>
impl<'a> Clone for ShowVariables<'a>
Source§fn clone(&self) -> ShowVariables<'a>
fn clone(&self) -> ShowVariables<'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 ShowVariables<'a>
impl<'a> Debug for ShowVariables<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShowVariables<'a>
impl<'a> RefUnwindSafe for ShowVariables<'a>
impl<'a> Send for ShowVariables<'a>
impl<'a> Sync for ShowVariables<'a>
impl<'a> Unpin for ShowVariables<'a>
impl<'a> UnsafeUnpin for ShowVariables<'a>
impl<'a> UnwindSafe for ShowVariables<'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