SchemaColumn class

Describes a column object managed by SQLite This should not exist outside of a SchemaTable

Constructors

SchemaColumn(String name, Column columnType, {bool? autoincrement, dynamic defaultValue, bool isPrimaryKey = false, bool isForeignKey = false, String? foreignTableName, bool? nullable, bool onDeleteCascade = false, bool onDeleteSetDefault = false, bool? unique})
Describes a column object managed by SQLite This should not exist outside of a SchemaTable

Properties

autoincrement → bool
If this column has an autoincrement value
final
columnType → Column
final
defaultValue → dynamic
final
foreignTableName → String?
final
forGenerator → String
Generated Dart code to include in a schema.
no setter
hashCode → int
The hash code for this object.
no setteroverride
isForeignKey → bool
final
isPrimaryKey → bool
final
name ↔ String
getter/setter pair
nullable → bool
final
onDeleteCascade → bool
Remove row when a referenced foreign key is deleted
final
onDeleteSetDefault → bool
Update column's value to default when a referenced foreign key is deleted
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tableName ↔ String?
getter/setter pair
unique → bool
If this column's value is unique within the table
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCommand({bool shouldDrop = false}) → MigrationCommand
Generated Dart code to include in a migrations file.
toString() → String
A string representation of this object.
inherited

Operators

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