CheckSchema class final

A row CHECK expression. A null name leaves naming to the database.

Constructors

CheckSchema(String? name, String expression)
Uses one trusted SQL expression for all dialects.
const
CheckSchema.forDialects(String? name, {required String sqlite, required String postgres, String? mysql, String? mariadb})
Uses explicit dialect expressions; omitted engines remain unsupported.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
mariadb → String?
Explicit MariaDB expression, or null when that dialect is unsupported.
final
mysql → String?
Explicit MySQL expression, or null when that dialect is unsupported.
final
name → String?
Physical constraint name, or null to retain an unnamed constraint.
final
postgres → String
Trusted PostgreSQL expression using physical column names.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sqlite → String
Trusted SQLite expression using physical column names.
final

Methods

expression(SqlDialect dialect) → String
Returns the target expression or rejects an undeclared dialect.
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