Update Statement::Drop doc comment

This commit is contained in:
Nickolay Ponomarev 2019-07-07 02:23:24 +03:00
parent 64e7be0c68
commit f11d74a64d

View file

@ -423,11 +423,16 @@ pub enum Statement {
name: ObjectName, name: ObjectName,
operation: AlterTableOperation, operation: AlterTableOperation,
}, },
/// DROP TABLE /// DROP
Drop { Drop {
/// The type of the object to drop: TABLE, VIEW, etc.
object_type: ObjectType, object_type: ObjectType,
/// An optional `IF EXISTS` clause. (Non-standard.)
if_exists: bool, if_exists: bool,
/// One or more objects to drop. (ANSI SQL requires exactly one.)
names: Vec<ObjectName>, names: Vec<ObjectName>,
/// Whether `CASCADE` was specified. This will be `false` when
/// `RESTRICT` or no drop behavior at all was specified.
cascade: bool, cascade: bool,
}, },
/// `{ BEGIN [ TRANSACTION | WORK ] | START TRANSACTION } ...` /// `{ BEGIN [ TRANSACTION | WORK ] | START TRANSACTION } ...`