module documentation
Schema definition and manipulation for DataGraphs domain models.
| Class | |
A validation rule for a property, e.g. ValidationRule(VALIDATION_RULE_TYPE.MAX_LENGTH, 200). |
| Exception | |
Raised when a class is not found in the schema. |
| Exception | |
Raised when an enum property would be left without permitted values. |
| Exception | |
Raised when an invalid inverse property is specified. |
| Exception | |
Raised when attempting to create a property that already exists. |
| Exception | |
Raised when a property is not found in a class. |
| Exception | |
Base exception for Schema-related errors. |
| Function | _resulting |
The permitted values an enum property will have once a create or update is applied: those the call gives, or else the property's current ones. |
| Constant | _LENGTH |
Undocumented |
| Constant | _RULE |
Undocumented |
| Constant | _TEXT |
Undocumented |
def _resulting_enum_values(enums:
list | None, validation_rules: list[ ValidationRule] | None, existing_prop: dict | None) -> list | tuple:
¶
The permitted values an enum property will have once a create or update is applied: those the call gives, or else the property's current ones.
_LENGTH_RULE_TYPES =
¶
Undocumented
| Value |
|
Undocumented
| Value |
|