A column constraint modifies a column to add e.g. a not-null requirement, foreign keys, checks or additional information.
- Implemented types
Constructors
- ColumnConstraint.custom(CustomComponent custom, {KnownSqlDialect? onlyOnDialect})
-
Creates a column constraint generating dialect-specific SQL.
constfactory
- ColumnConstraint.customSql(String sql)
-
Creates a column constraint from its
sqltext.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compileWith(
StatementCompiler compiler) → void -
Compiles this component with the given StatementCompiler by invoking the
relevant
addmethod on it.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited