Sourceο
Classes
|
Check whether sources have an appropriate number of downstream dependencies. |
Check whether sources have freshness configured in their properties. |
|
Check whether sources have appropriate configuration for a loader in their properties. |
- class dbt_contracts.contracts.terms.source.HasLoaderο
Bases:
NodeContractTermCheck whether sources have appropriate configuration for a loader in their properties.
- run(item: ItemT, context: ContractContext, parent: ParentT = None) boolο
Validate the context before running the term.
- class dbt_contracts.contracts.terms.source.HasFreshnessο
Bases:
NodeContractTermCheck whether sources have freshness configured in their properties.
- run(item: ItemT, context: ContractContext, parent: ParentT = None) boolο
Validate the context before running the term.
- class dbt_contracts.contracts.terms.source.HasDownstreamDependencies(*, min_count: Annotated[int, Ge(ge=1)] = 1, max_count: Annotated[int | None, Gt(gt=0)] = None)ο
Bases:
NodeContractTerm,RangeMatcherCheck whether sources have an appropriate number of downstream dependencies.
- needs_manifest: ClassVar[bool] = Trueο
Mark if this term requires a loaded manifest to operate. The manifest must then be provided by the ContractContext for the term to execute successfully.
- run(item: ItemT, context: ContractContext, parent: ParentT = None) boolο
Validate the context before running the term.