pub struct DropEvent<'a> {
pub drop_span: Span,
pub event_span: Span,
pub if_exists: Option<Span>,
pub event: QualifiedName<'a>,
}
Expand description
Represent a drop event statement
let sql = "DROP EVENT myevent;";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
let s: DropEvent = match stmts.pop() {
Some(Statement::DropEvent(s)) => s,
_ => panic!("We should get a drop event statement")
};
assert!(s.event.identifier.as_str() == "myevent");
Fields§
§drop_span: Span
Span of “DROP”
event_span: Span
Span of “EVENT”
if_exists: Option<Span>
Span of “IF EXISTS” if specified
event: QualifiedName<'a>
Event to drop
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DropEvent<'a>
impl<'a> RefUnwindSafe for DropEvent<'a>
impl<'a> Send for DropEvent<'a>
impl<'a> Sync for DropEvent<'a>
impl<'a> Unpin for DropEvent<'a>
impl<'a> UnwindSafe for DropEvent<'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