Represents a database column for a SchemaTable.

Use this class during migration to add, delete and modify columns.

Static Methods

deleteRuleForDeleteRuleString(String rule) ManagedRelationshipDeleteRule

deleteRuleStringForDeleteRule(ManagedRelationshipDeleteRule rule) → String

typeFromTypeString(String type) ManagedPropertyType

typeStringForType(ManagedPropertyType type) → String

Constructors

SchemaColumn(String name, ManagedPropertyType t, { bool isIndexed: false, bool isNullable: false, bool autoincrement: false, bool isUnique: false, String defaultValue, bool isPrimaryKey: false })

SchemaColumn.empty()

SchemaColumn.from(SchemaColumn otherColumn)

SchemaColumn.fromEntity(ManagedEntity entity, ManagedPropertyDescription desc)

SchemaColumn.fromMap(Map<String, dynamic> map)

SchemaColumn.relationship(String name, ManagedPropertyType t, { bool isNullable: true, bool isUnique: false, String relatedTableName, String relatedColumnName, ManagedRelationshipDeleteRule rule: ManagedRelationshipDeleteRule.nullify })

Properties

autoincrement → bool

read / write
defaultValue → String

read / write
deleteRule ManagedRelationshipDeleteRule

read / write
isForeignKey → bool

read-only
isIndexed → bool

read / write
isNullable → bool

read / write
isPrimaryKey → bool

read / write
isUnique → bool

read / write
name → String

read / write
relatedColumnName → String

read / write
relatedTableName → String

read / write
type ManagedPropertyType

read / write
typeString → String

read-only
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

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

asMap() → Map<String, dynamic>

differenceFrom(SchemaColumn column) SchemaColumnDifference

The differences between two columns.

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited