pub struct ShowCreateView<'a> {
pub show_span: Span,
pub create_span: Span,
pub object_span: Span,
pub view: QualifiedName<'a>,
}Expand description
Parse result for SHOW CREATE VIEW
let sql = "SHOW CREATE VIEW my_view;";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
match stmts.pop() {
Some(Statement::ShowCreateView(s)) => {
// s.view contains the view name
}
_ => panic!("expected ShowCreateView"),
}Fields§
§show_span: Span§create_span: Span§object_span: Span§view: QualifiedName<'a>Trait Implementations§
Source§impl<'a> Clone for ShowCreateView<'a>
impl<'a> Clone for ShowCreateView<'a>
Source§fn clone(&self) -> ShowCreateView<'a>
fn clone(&self) -> ShowCreateView<'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 ShowCreateView<'a>
impl<'a> Debug for ShowCreateView<'a>
Auto Trait Implementations§
impl<'a> Freeze for ShowCreateView<'a>
impl<'a> RefUnwindSafe for ShowCreateView<'a>
impl<'a> Send for ShowCreateView<'a>
impl<'a> Sync for ShowCreateView<'a>
impl<'a> Unpin for ShowCreateView<'a>
impl<'a> UnsafeUnpin for ShowCreateView<'a>
impl<'a> UnwindSafe for ShowCreateView<'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