pub struct Drop {
pub object_type: ObjectType,
pub if_exists: bool,
pub names: Vec<ObjectName>,
pub cascade: bool,
pub purge: bool,
}
Expand description
DROP
Fields§
§object_type: ObjectType
The type of the object to drop: TABLE, VIEW, etc.
if_exists: bool
An optional IF EXISTS
clause. (Non-standard.)
names: Vec<ObjectName>
One or more objects to drop. (ANSI SQL requires exactly one.)
cascade: bool
Whether CASCADE
was specified. This will be false
when
RESTRICT
or no drop behavior at all was specified.
purge: bool
Hive allows you specify whether the table’s stored data will be deleted along with the dropped table
Trait Implementations§
impl Eq for Drop
impl StructuralPartialEq for Drop
Auto Trait Implementations§
impl Freeze for Drop
impl RefUnwindSafe for Drop
impl Send for Drop
impl Sync for Drop
impl Unpin for Drop
impl UnwindSafe for Drop
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