UniqueConstraint#

class lsst.dax.apdb.schema_model.UniqueConstraint(name: str | None, id: str, deferrable: bool = False, initially: str | None = None, description: str | None = None, annotations: ~collections.abc.Mapping[str, ~typing.Any] = <factory>, columns: list[~lsst.dax.apdb.schema_model.Column] = <factory>)#

Bases: Constraint

Description of unique constraint.

Attributes Summary

annotations

Additional annotations for this constraint.

columns

List of columns in this constraint, all columns belong to the same table as the constraint itself.

deferrable

If True then this constraint will be declared as deferrable.

description

Constraint description.

id

Felis ID for this constraint.

initially

Value for INITIALLY clause, only used of deferrable is True.

name

Constraint name.

Attributes Documentation

annotations: Mapping[str, Any] = <dataclasses._MISSING_TYPE object>#

Additional annotations for this constraint.

columns: list[Column] = <dataclasses._MISSING_TYPE object>#

List of columns in this constraint, all columns belong to the same table as the constraint itself.

deferrable: bool = False#

If True then this constraint will be declared as deferrable.

description: str | None = None#

Constraint description.

id: str = <dataclasses._MISSING_TYPE object>#

Felis ID for this constraint.

initially: str | None = None#

Value for INITIALLY clause, only used of deferrable is True.

name: str | None = <dataclasses._MISSING_TYPE object>#

Constraint name.