DropStatement class final
Represents a DROP TABLE statement in SQL.
- Inheritance
-
- Object
- SqlStatement
- DropStatement
Constructors
- DropStatement(String kind, String name, {bool ifExists = false})
-
Create a statement that will
DROPthenamewhen issued. - DropStatement.entity(DatabaseSchemaEntity entity, {bool ifExists = false})
-
Creates a
DROPstatement droppingentity.
Properties
-
dialectSpecificOptions
→ Map<
Symbol, Object?> -
A map of dialect-specific options.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ifExists → bool
-
When set to
true, don't fail if name doesn't exist.final - kind → String
-
The type of element to delete (either
TABLE,VIEW,TRIGGERorINDEX).final - name → String
-
The name of table, view, index of trigger that should be dropped by this
statement.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compileWith(
StatementCompiler compiler) → void -
Compiles this component with the given StatementCompiler by invoking the
relevant
addmethod on it.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited