SchemaColumn class

Metadata describing a table column.

Columns are returned by SchemaDriver.listColumns.

Constructors

SchemaColumn({required String name, required String dataType, String? schema, String? tableName, int? length, int? numericPrecision, int? numericScale, bool nullable = true, String? defaultValue, bool autoIncrement = false, bool primaryKey = false, String? comment, String? generatedExpression})
const
SchemaColumn.fromJson(Map<String, Object?> json)
factory

Properties

autoIncrement → bool
Whether the column uses auto-increment semantics.
final
comment → String?
Column comment provided by the database.
final
dataType → String
Data type string reported by the database.
final
defaultValue → String?
Default expression defined for the column.
final
generatedExpression → String?
Expression used to generate this column, if any.
final
hashCode → int
The hash code for this object.
no setterinherited
length → int?
Maximum length for text columns.
final
name → String
Column name without schema qualification.
final
nullable → bool
Whether the column allows NULL values.
final
numericPrecision → int?
Numeric precision when applicable.
final
numericScale → int?
Numeric scale when applicable.
final
primaryKey → bool
Whether the column is part of the primary key.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → String?
Schema containing the column, when applicable.
final
tableName → String?
Table that owns the column, without schema qualification.
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