ColumnType class

Declarative column type metadata.

Annotations
  • @immutable

Constructors

ColumnType(ColumnTypeName name, {int? length, int? precision, int? scale, String? customName, bool timezoneAware = false})
const
ColumnType.bigInteger()
const
ColumnType.binary()
const
ColumnType.boolean()
const
ColumnType.custom(String name)
const
ColumnType.date({bool timezoneAware = false})
const
ColumnType.decimal({int precision = 10, int scale = 0})
const
ColumnType.doubleType()
const
ColumnType.enumType()
const
ColumnType.floatType()
const
ColumnType.fromJson(Map<String, Object?> json)
factory
ColumnType.geography()
const
ColumnType.geometry()
const
ColumnType.integer()
const
ColumnType.json()
const
ColumnType.jsonb()
const
ColumnType.longText()
const
ColumnType.mediumInteger()
const
ColumnType.setType()
const
ColumnType.smallInteger()
const
ColumnType.string({int length = 255})
const
ColumnType.text()
const
ColumnType.time({bool timezoneAware = false})
const
ColumnType.timestamp({bool timezoneAware = false, int? precision})
const
ColumnType.tinyInteger()
const
ColumnType.uuid()
const
ColumnType.vector({int? dimensions})
const

Properties

customName String?
Custom driver type name when name is ColumnTypeName.custom.
final
hashCode int
The hash code for this object.
no setterinherited
length int?
Character length qualifier for string/vector types.
final
name ColumnTypeName
Logical type recognized by the DSL.
final
precision int?
Precision for numeric types.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int?
Scale for numeric types.
final
timezoneAware bool
Whether the type stores timezone-aware timestamps.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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