ColumnDefinition class
Constructors
- ColumnDefinition(Schema _schema, String _name, String _type)
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  autoIncrement() → ColumnDefinition 
- Set column as AUTO_INCREMENT
- 
  charset(String charset) → ColumnDefinition 
- Set column charset - NOW PROPERLY USED!
- 
  collate(String collation) → ColumnDefinition 
- Set column collation
- 
  comment(String comment) → ColumnDefinition 
- Set column comment
- 
  defaultTo(dynamic value) → ColumnDefinition 
- Set default value
- 
  defaultToCurrent() → ColumnDefinition 
- Set default to CURRENT_TIMESTAMP
- 
  finalize() → void 
- 
  foreignKey(String referencesTable, String referencesColumn, {String onUpdate = 'CASCADE', String onDelete = 'CASCADE'}) → ColumnDefinition 
- 
  generated(String expression, {String virtuality = 'VIRTUAL'}) → ColumnDefinition 
- 
  index([String? indexName, ColumnIndex type = ColumnIndex.indexKey]) → ColumnDefinition 
- Add index to column - NOW PROPERLY USED!
- 
  length(int length) → ColumnDefinition 
- Set column length/size
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  notNull() → ColumnDefinition 
- Set column as NOT NULL
- 
  nullable() → ColumnDefinition 
- Set column as NULLABLE
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  unique([String? constraintName]) → ColumnDefinition 
- Set column as UNIQUE
- 
  unsigned() → ColumnDefinition 
- Set column as UNSIGNED (for numeric types)
- 
  zeroFill() → ColumnDefinition 
- Set column as ZEROFILL
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited