MssqlColumnSchema class

Annotations
  • @immutable

Constructors

MssqlColumnSchema({required int ordinal, required String name, required String sqlTypeName, required MssqlType type, required bool nullable, required bool isIdentity, required bool isComputed, required bool isRowVersion, required bool hasDefault, required int maxLength, required int precision, required int scale, String? collation, String? defaultSql, String? computedSql, bool isPersistedComputed = false})
const

Properties

collation String?
The column's collation, for a character column; null otherwise.
final
computedSql String?
The computed column's expression, when isComputed.
final
defaultSql String?
The default constraint's expression, as SQL Server stores it.
final
hasDefault bool
Whether a default constraint fills this column in when an insert omits it.
final
hashCode int
The hash code for this object.
no setterinherited
isComputed bool
final
isIdentity bool
final
isPersistedComputed bool
Whether a computed column is persisted, and so can be indexed.
final
isRowVersion bool
A rowversion/timestamp column: written by the server, never by the client.
final
isServerGenerated bool
Whether the server, not the application, produces this column's value.
no setter
maxLength int
Bytes, as sys.columns reports it: an nvarchar(50) is 100, and a max column is -1.
final
name String
final
nullable bool
final
ordinal int
SQL Server's column_id.
final
precision int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int
final
sqlTypeName String
The base system type's name, such as nvarchar or decimal.
final
type → MssqlType
The driver's own classification of sqlTypeName.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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