Struct sql_parser::ast::DropObjectsStatement [−][src]
pub struct DropObjectsStatement {
pub materialized: bool,
pub object_type: ObjectType,
pub if_exists: bool,
pub names: Vec<UnresolvedObjectName>,
pub cascade: bool,
}
Expand description
DROP
Fields
materialized: bool
If this was constructed as DROP MATERIALIZED <type>
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<UnresolvedObjectName>
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.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DropObjectsStatement
impl Send for DropObjectsStatement
impl Sync for DropObjectsStatement
impl Unpin for DropObjectsStatement
impl UnwindSafe for DropObjectsStatement
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more