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
Additional annotations for this constraint.
If
Truethen this constraint will be declared as deferrable.Constraint description.
Expression on one or more columns on the table, must be non-empty.
Felis ID for this constraint.
Value for
INITIALLYclause, only used ofdeferrableis True.Constraint name.
Attributes Documentation
- annotations: Mapping[str, Any] = <dataclasses._MISSING_TYPE object>#
Additional annotations for this constraint.
- deferrable: bool = False#
If
Truethen this constraint will be declared as deferrable.
- description: str | None = None#
Constraint description.
- expression: str = ''#
Expression on one or more columns on the table, must be non-empty.
- id: str = <dataclasses._MISSING_TYPE object>#
Felis ID for this constraint.
- initially: str | None = None#
Value for
INITIALLYclause, only used ofdeferrableis True.
- name: str | None = <dataclasses._MISSING_TYPE object>#
Constraint name.