DropStatement class final

Represents a DROP TABLE statement in SQL.

Inheritance

Constructors

DropStatement(String kind, String name, {bool ifExists = false})
Create a statement that will DROP the name when issued.
DropStatement.entity(DatabaseSchemaEntity entity, {bool ifExists = false})
Creates a DROP statement dropping entity.

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, TRIGGER or INDEX).
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 add method 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