MssqlUniqueKeySchema class

A unique index or constraint.

Annotations
  • @immutable

Constructors

MssqlUniqueKeySchema({required String name, required List<String> columns, required bool isPrimaryKey, bool isConstraint = false, bool isDisabled = false, String? filterSql, List<bool> nullable = const <bool>[], List<String?> collations = const <String?>[]})

Properties

allowsDuplicateNulls bool
Whether any key column can be NULL, so several all-NULL rows can coexist.
no setter
collations List<String?>
Each key column's collation, in columns order; null for non-text.
final
columns List<String>
The key columns, in key order. Included columns are not part of a key and are not here.
final
filterSql String?
The filter predicate of a filtered index, or null for an ordinary one.
final
guaranteesUniqueness bool
Whether this key makes its columns unique across the whole table.
no setter
hashCode int
The hash code for this object.
no setterinherited
isConstraint bool
Whether it is a UNIQUE constraint rather than a bare unique index.
final
isDisabled bool
final
isPrimaryKey bool
final
name String
final
nullable List<bool>
Whether each key column is nullable, in columns order.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unusableReason String?
Why this key cannot stand in for a unique constraint, or null when it can. Written for a diagnostic, so it reads as a reason.
no setter

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