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