Constraint

pydantic model felis.datamodel.Constraint

Table constraint model.

Parameters:

data (Any)

Fields:
Validators:
field deferrable: bool = False

Whether this constraint will be declared as deferrable.

Validated by:
field initially: Literal['IMMEDIATE', 'DEFERRED'] | None = None

Value for INITIALLY clause; only used if deferrable is True.

Validated by:
validator check_deferrable  »  all fields

Check that the INITIALLY clause is only used if deferrable is True.

Returns:

The constraint being validated.

Return type:

Constraint