Skip to content

Commit 1e22ac0

Browse files
committed
Expose full catalog verification for mutation gates
1 parent 8ffa2a1 commit 1e22ac0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/openstatspec/sql/wide.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,13 @@ def _require_verified_catalog(
14291429
)
14301430

14311431

1432+
def require_verified_catalog(connection: Any) -> None:
1433+
"""Require full OpenStatSpec catalog ownership, shape, and dataset bijection."""
1434+
metadata = MetaData()
1435+
legacy, normative = _catalog_layout(metadata)
1436+
_require_verified_catalog(connection, normative, legacy)
1437+
1438+
14321439
def _catalog_snapshot(
14331440
connection: Any,
14341441
) -> tuple[set[str], dict[str, set[str]]]:

0 commit comments

Comments
 (0)