pub struct DropOperatorClass<'a> {
pub drop_operator_class_span: Span,
pub if_exists: Option<Span>,
pub class: QualifiedName<'a>,
pub using: Option<(Span, Identifier<'a>)>,
pub restrict_or_cascade: Option<CascadeOrRestrict>,
}Expand description
Represent a drop operator class statement (PostgreSQL)
let sql = "DROP OPERATOR CLASS IF EXISTS myclass USING gist CASCADE;";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
let drop: DropOperatorClass = match stmts.pop() {
Some(Statement::DropOperatorClass(d)) => *d,
_ => panic!("We should get a drop operator class statement")
};
assert!(drop.class.identifier.as_str() == "myclass");Fields§
§drop_operator_class_span: SpanSpan of “DROP OPERATOR CLASS”
if_exists: Option<Span>Span of “IF EXISTS” if specified
class: QualifiedName<'a>Name of the operator class
using: Option<(Span, Identifier<'a>)>Span and name of the index method (USING …)
restrict_or_cascade: Option<CascadeOrRestrict>Restrict or cascade option (PostgreSQL)
Trait Implementations§
Source§impl<'a> Clone for DropOperatorClass<'a>
impl<'a> Clone for DropOperatorClass<'a>
Source§fn clone(&self) -> DropOperatorClass<'a>
fn clone(&self) -> DropOperatorClass<'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 DropOperatorClass<'a>
impl<'a> Debug for DropOperatorClass<'a>
Auto Trait Implementations§
impl<'a> Freeze for DropOperatorClass<'a>
impl<'a> RefUnwindSafe for DropOperatorClass<'a>
impl<'a> Send for DropOperatorClass<'a>
impl<'a> Sync for DropOperatorClass<'a>
impl<'a> Unpin for DropOperatorClass<'a>
impl<'a> UnsafeUnpin for DropOperatorClass<'a>
impl<'a> UnwindSafe for DropOperatorClass<'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