CreateTableStatement class final
Represents a CREATE TABLE statement in SQL.
Drift provides no information about the structure of that statement outside
of the entity to create. This is because generating CREATE TABLE
statements is highly dialect-specific, and this layout allows dialects to
customize how they generate these statements most easily.
- Inheritance
-
- Object
- SqlStatement
- CreateStatement<
GeneratedTable< Object, GeneratedTable< >Object, dynamic> > - CreateTableStatement
Constructors
-
CreateTableStatement(GeneratedTable<
Object, GeneratedTable< entity, {bool ifNotExists = false})Object, dynamic> > -
Create a statement that will
CREATEtheentitywhen issued.
Properties
-
dialectSpecificOptions
→ Map<
Symbol, Object?> -
A map of dialect-specific options.
finalinherited
-
entity
→ GeneratedTable<
Object, GeneratedTable< Object, dynamic> > -
The table, view, trigger or index to create.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- ifNotExists → bool
-
Whether the entity should only be created if it doesn't exist alredy.
finalinherited
- 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