Column class

Applies additional attributes to a database column.

Implementers

Constructors

Column({bool isNullable = true, int length = 255, int precision = 17, int scale = 3, String? name, String? timezone, ColumnType type = ColumnType.varChar, IndexType indexType = IndexType.none, String? expression, dynamic defaultValue})
const

Properties

defaultValue → dynamic
Specifies the default values.
final
expression String?
A custom SQL expression to execute, instead of a named column.
final
hasExpression bool
Returns true if expression is not null.
no setter
hashCode int
The hash code for this object.
no setterinherited
indexType IndexType
Specifies what kind of index this column is, if any.
final
isNullable bool
If true, a SQL field will be nullable.
final
length int
Specifies the length of a VARCHAR.
final
name String?
Specifies this column name.
final
precision int
Specifies the precision of a NUMERIC or DECIMAL.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int
Specifies the scale of a NUMERIC or DECIMAL.
final
timezone String?
Specifies the timezone for temporal field.
final
type ColumnType
Explicitly defines a SQL type for this column.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited