ResultColumn class
- Implemented types
- Available extensions
Constructors
- ResultColumn(String name, ColumnType type, bool nullable, {UsedTypeConverter? typeConverter, Column? sqlParserColumn})
Properties
- compatibilityHashCode → int
-
Hash-code that matching compatibleTo, so that two compatible columns
will have the same compatibilityHashCode.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isArray → bool
-
Whether this type is an array in sql.
no setteroverride
- name → String
-
final
- nullable → bool
-
Whether the type is nullable in Dart.
final
- nullableInDart → bool
-
Available on HasType, provided by the OperationOnTypes extension
Whether this type is nullable in Dartno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sqlParserColumn → Column?
-
The analyzed column from the
sqlparser
package.final - sqlTypeName → String
-
Available on HasType, provided by the OperationOnTypes extension
The class inside the moor library that represents the same sql type as this column.no setter - type → ColumnType
-
The associated sql type.
final
- typeConverter → UsedTypeConverter?
-
The applied type converter, or null.
final
- variableTypeName → String
-
Available on HasType, provided by the OperationOnTypes extension
the Dart type of this column that can be handled by moors type mapping. Basically the same as dartTypeCode, minus custom types and nullability.no setter
Methods
-
compatibleTo(
ResultColumn other) → bool -
Checks whether this column is compatible to the
other
, meaning that they have the same name and type. -
dartTypeCode(
[GenerationOptions options = const GenerationOptions()]) → String -
Available on HasType, provided by the OperationOnTypes extension
The dart type that matches the values of this column. For instance, if a table has declared anIntColumn
, the matching dart type name would be int. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
variableTypeCode(
[GenerationOptions options = const GenerationOptions()]) → String -
Available on HasType, provided by the OperationOnTypes extension
The moor Dart type that matches the type of this column. -
variableTypeCodeWithoutArray(
[GenerationOptions options = const GenerationOptions()]) → String -
Available on HasType, provided by the OperationOnTypes extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited