check function

CheckDefinition check(
  1. String expression, {
  2. required String? name,
  3. String? sqlite,
  4. String? postgres,
  5. String? mysql,
  6. String? mariadb,
})

Declares a CHECK using physical column names. The database evaluates the trusted SQL expression. Dialect overrides are explicit. Use a stable name, or name: null to preserve an unnamed imported constraint.

Implementation

CheckDefinition check(
  String expression, {
  required String? name,
  String? sqlite,
  String? postgres,
  String? mysql,
  String? mariadb,
}) => const CheckDefinition._();