pub struct ShowTables<'a> {
pub show_span: Span,
pub tables_span: Span,
pub extended: Option<Span>,
pub full: Option<Span>,
pub db: Option<QualifiedName<'a>>,
pub like: Option<SString<'a>>,
pub where_expr: Option<Expression<'a>>,
}Expand description
Parse result for SHOW TABLES variants
let sql = "SHOW EXTENDED TABLES FROM test_db LIKE 't%';";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
match stmts.pop() {
Some(Statement::ShowTables(s)) => {
// inspect s.extended, s.db, s.pattern, etc.
}
_ => panic!("expected ShowTables"),
}Fields§
§show_span: Span§tables_span: Span§extended: Option<Span>§full: Option<Span>§db: Option<QualifiedName<'a>>§like: Option<SString<'a>>§where_expr: Option<Expression<'a>>Trait Implementations§
Source§impl<'a> Clone for ShowTables<'a>
impl<'a> Clone for ShowTables<'a>
Source§fn clone(&self) -> ShowTables<'a>
fn clone(&self) -> ShowTables<'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 ShowTables<'a>
impl<'a> Debug for ShowTables<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShowTables<'a>
impl<'a> RefUnwindSafe for ShowTables<'a>
impl<'a> Send for ShowTables<'a>
impl<'a> Sync for ShowTables<'a>
impl<'a> Unpin for ShowTables<'a>
impl<'a> UnsafeUnpin for ShowTables<'a>
impl<'a> UnwindSafe for ShowTables<'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