Struct sql_parse::DropProcedure
source · [−]pub struct DropProcedure<'a> {
pub drop_span: Span,
pub procedure_span: Span,
pub if_exists: Option<Span>,
pub procedure: Identifier<'a>,
}
Expand description
Represent a drop procedure statement
let sql = "DROP PROCEDURE myproc;";
let mut stmts = parse_statements(sql, &mut issues, &options);
let s: DropProcedure = match stmts.pop() {
Some(Statement::DropProcedure(s)) => s,
_ => panic!("We should get a drop procedure statement")
};
assert!(s.procedure.as_str() == "myproc");
Fields
drop_span: Span
Span of “DROP”
procedure_span: Span
Span of “PROCEDURE”
if_exists: Option<Span>
Span of “IF EXISTS” if specified
procedure: Identifier<'a>
Procedure to drop
Trait Implementations
sourceimpl<'a> Clone for DropProcedure<'a>
impl<'a> Clone for DropProcedure<'a>
sourcefn clone(&self) -> DropProcedure<'a>
fn clone(&self) -> DropProcedure<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for DropProcedure<'a>
impl<'a> Debug for DropProcedure<'a>
sourceimpl<'a> Spanned for DropProcedure<'a>
impl<'a> Spanned for DropProcedure<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DropProcedure<'a>
impl<'a> Send for DropProcedure<'a>
impl<'a> Sync for DropProcedure<'a>
impl<'a> Unpin for DropProcedure<'a>
impl<'a> UnwindSafe for DropProcedure<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more