pub struct DropOperatorItem<'a> {
pub name: QualifiedName<'a>,
pub left_type: Option<DataType<'a>>,
pub right_type: Option<DataType<'a>>,
}Expand description
Represent a drop operator statement (PostgreSQL)
let sql = "DROP OPERATOR IF EXISTS +(integer, integer) CASCADE;";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
let drop: DropOperator = match stmts.pop() {
Some(Statement::DropOperator(d)) => *d,
_ => panic!("We should get a drop operator statement")
};
assert!(drop.operators.get(0).unwrap().name.identifier.as_str() == "+");Fields§
§name: QualifiedName<'a>§left_type: Option<DataType<'a>>§right_type: Option<DataType<'a>>Trait Implementations§
Source§impl<'a> Clone for DropOperatorItem<'a>
impl<'a> Clone for DropOperatorItem<'a>
Source§fn clone(&self) -> DropOperatorItem<'a>
fn clone(&self) -> DropOperatorItem<'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 DropOperatorItem<'a>
impl<'a> Debug for DropOperatorItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for DropOperatorItem<'a>
impl<'a> RefUnwindSafe for DropOperatorItem<'a>
impl<'a> Send for DropOperatorItem<'a>
impl<'a> Sync for DropOperatorItem<'a>
impl<'a> Unpin for DropOperatorItem<'a>
impl<'a> UnsafeUnpin for DropOperatorItem<'a>
impl<'a> UnwindSafe for DropOperatorItem<'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