Struct sqlx_models_parser::ast::Drop [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for Drop
impl UnwindSafe for Drop
Blanket Implementations
Mutably borrows from an owned value. Read more