ColumnInfo class final
Constructors
- ColumnInfo({required String name, required DbValueType valueType, String declaredType = '', bool nullable = true, int primaryKeyPosition = 0, String? defaultValue, bool autoIncrement = false, bool generated = false})
-
const
- ColumnInfo.fromJson(JsonMap json)
-
factory
Properties
- autoIncrement → bool
-
Value is assigned by the engine when omitted on insert.
final
- declaredType → String
-
Type as declared by the engine (e.g.
VARCHAR(20)).final - defaultValue → String?
-
Default value expression as text.
final
- generated → bool
-
Computed column that cannot be written.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPrimaryKey → bool
-
no setter
- name → String
-
final
- nullable → bool
-
final
- primaryKeyPosition → int
-
1-based position in the primary key, or 0 when not part of it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- valueType → DbValueType
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → JsonMap -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited