Skip to content

hash_versions

etl_craft.engine.repository.hash_versions

The published hash contract of each warehouse target.

fetch_hash_version

fetch_hash_version(conn: Connection, target: str) -> int | None

Return the target's recorded version; an unrecorded target has unknown hashes.

save_hash_version

save_hash_version(conn: Connection, target: str, version: int) -> None

Publish a contract only after its warehouse transaction committed.

clear_hash_version

clear_hash_version(conn: Connection, target: str) -> None

Forget a target whose physical table was dropped or replaced.