ColumnDefinition class final
A column being defined (or changed) inside a Blueprint.
- Implementers
Constructors
-
ColumnDefinition(String name, ColumnType type, {int? length, int? precision, int? scale, List<
String> allowed = const <String>[]})
Properties
-
allowed
→ List<
String> -
Allowed values for ColumnType.enumeration.
final
- commentText → String?
-
no setter
- defaultValue → Object?
-
no setter
- hasDefault → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasIndex → bool
-
no setter
- isAutoIncrement → bool
-
no setter
- isChange → bool
-
no setter
- isNullable → bool
-
no setter
- isPrimary → bool
-
no setter
- isUnique → bool
-
no setter
- isUnsigned → bool
-
no setter
- length → int?
-
final
- name → String
-
final
- precision → int?
-
final
- rawDefault → String?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → int?
-
final
- type → ColumnType
-
final
- usesCurrent → bool
-
no setter
Methods
-
change(
) → ColumnDefinition -
Marks the column as a modification of an existing column
(
Schema.tableonly). -
comment(
String text) → ColumnDefinition -
defaultRaw(
String expression) → ColumnDefinition -
Raw SQL default (
defaultRaw('CURRENT_TIMESTAMP')). -
defaultTo(
Object? value) → ColumnDefinition -
index(
) → ColumnDefinition -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
nullable(
[bool value = true]) → ColumnDefinition -
primary(
) → ColumnDefinition -
toString(
) → String -
A string representation of this object.
inherited
-
unique(
) → ColumnDefinition -
unsigned(
) → ColumnDefinition -
useCurrent(
) → ColumnDefinition -
DEFAULT CURRENT_TIMESTAMPfor timestamp columns.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited