Alter class

Alter table statement

Implemented types

Constructors

Alter(String table)

Properties

adds → Map<String, AddColumn>
final
drops → Map<String, DropColumn>
final
mods → Map<String, ModifyColumn>
final
others → List<AlterClause>
final
primaryKeys → List<String>
final
shouldDropPrimary ↔ bool
read / write
table → String
Table to alter
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(AlterClause cl) Alter
addAll(Iterable<AlterClause> clauses) Alter
addBool(String name, { bool isNullable: false, String uniqueGroup }) Alter
addDatetime(String name, { bool isNullable: false, String uniqueGroup }) Alter
addDouble(String name, { bool isNullable: false, bool primary: false, String foreignTable, String foreignCol, String uniqueGroup }) Alter
addInt(String name, { bool isNullable: false, bool autoIncrement: false, bool primary: false, String foreignTable, String foreignCol, String uniqueGroup }) Alter
addPrimaryKey(Iterable<String> pkeys) Alter
addString(String name, { bool isNullable: false, int length: 20, bool primary: false, String foreignTable, String foreignCol, String uniqueGroup }) Alter
drop(String name) Alter
dropPrimaryKey() Alter
modifyBool(String name, { bool isNullable: false, String uniqueGroup }) Alter
modifyDatetime(String name, { bool isNullable: false, String uniqueGroup }) Alter
modifyDouble(String name, { bool isNullable: false, bool primary: false, String foreignTable, String foreignCol, String uniqueGroup }) Alter
modifyInt(String name, { bool isNullable: false, bool autoIncrement: false, bool primary: false, String foreignTable, String foreignCol, String uniqueGroup }) Alter
modifyString(String name, { bool isNullable: false, int length: 20, bool primary: false, String foreignTable, String foreignCol, String uniqueGroup }) Alter
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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