check property
A CHECK
column constraint present on this column.
These constraints are evaluated as a boolean during inserts or upserts.
When they evaluate to false
, the causing statement is rejected.
Note that this field isn't always set: CHECK
constraints for tables
defined in .drift
files are written as raw constraints during build
time.
This field is defined as a lazy function because the check constraint
typically depends on the column itself.
Implementation
final Expression<bool?> Function()? check;