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