AlterTableSQL class

A ALTER TABLE SQL builder.

Inheritance

Constructors

AlterTableSQL(SQLDialect dialect, String table, List<SQLEntry> entries, {String? q, List<CreateIndexSQL>? indexes, List<AlterTableSQL>? constraints, String? parentTable})

Properties

allSQLBuilders → List<SQLBuilder>
All the SQLs of this builder tree node.
no setterinherited
constraints ↔ List<AlterTableSQL>?
getter/setter pair
dependentTables → List<String>
Returns a list of dependent tables, usually referenced tables.
no setteroverride
dialect → SQLDialect
The SQL dialect.
finalinherited
entries → List<SQLEntry>
The fields and constraint entries.
finalinherited
extraSQLBuilders → List<SQLBuilder>
Some extra SQL related to this SQL.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
indexes ↔ List<CreateIndexSQL>?
getter/setter pair
mainTable → String
The main table of the SQL.
no setterinherited
parentTable → String?
The parent table;
finalinherited
q → String
The quote of the dialect.
finalinherited
referenceTables → List<String>
Returns a list of referenced tables.
no setteroverride
referenceTablesLength → int
Returns a number of referenced tables.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
table → String
The table name.
finalinherited

Methods

buildAllSQLs({bool multiline = true, bool ifNotExists = true}) → List<String>
Build all the SQLs, including the extraSQLBuilders.
inherited
buildSQL({bool multiline = true, bool ifNotExists = true}) → String
Build the SQL.
override
compareTo(SQLBuilder other) → int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited