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})

Properties

autoincrement bool
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
final
onDeleteSetDefault bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String?
getter/setter pair
unique bool
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