CheckConstraint¶
- class lsst.dax.apdb.schema_model.CheckConstraint(name: str | None, id: str, deferrable: bool = False, initially: str | None = None, description: str | None = None, annotations: ~collections.abc.Mapping[str, ~typing.Any] = <factory>, expression: str = '')¶
Bases:
ConstraintDescription of check constraint.
Attributes Summary
If
Truethen this constraint will be declared as deferrable.Constraint description.
Expression on one or more columns on the table, must be non-empty.
Value for
INITIALLYclause, only used ofdeferrableis True.Methods Summary
from_felis(dm_constr, columns)Convert Felis constraint definition into instance of this class.
Attributes Documentation
Methods Documentation
- classmethod from_felis(dm_constr: Constraint, columns: Mapping[str, Column]) Constraint¶
Convert Felis constraint definition into instance of this class.
- Parameters:
- Returns:
- constraint
Constraint Converted constraint definition.
- constraint