ValidationDefinitionFactory
Responsible for basic CRUD operations on a Data Context's ValidationDefinitions.
Add a ValidationDefinition to the collection.
Parameters
Name Description validation
ValidationDefinition to add
Raises
Type Description DataContextError
if ValidationDefinition already exists
Add or update an ValidationDefinition by name.
If an ValidationDefinition with the same name exists, overwrite it, otherwise create a new ValidationDefinition.
Parameters
Name Description validation
ValidationDefinition to add or update
Get all ValidationDefinitions.
Delete a ValidationDefinition from the collection.
Parameters
Name Description name
The name of the ValidationDefinition to delete
Raises
Type Description DataContextError
if ValidationDefinition doesn't exist
Get a ValidationDefinition from the collection by name.
Parameters
Name Description name
Name of ValidationDefinition to get
Raises
Type Description DataContextError
when ValidationDefinition is not found.
class great_expectations.core.factory.ValidationDefinitionFactory(store: ValidationDefinitionStore)
Methods
add(validation: great_expectations.core.validation_definition.ValidationDefinition) → great_expectations.core.validation_definition.ValidationDefinition
add_or_update(validation: great_expectations.core.validation_definition.ValidationDefinition) → great_expectations.core.validation_definition.ValidationDefinition
all() → Iterable[great_expectations.core.validation_definition.ValidationDefinition]
delete(name: str) → None
get(name: str) → great_expectations.core.validation_definition.ValidationDefinition