hydromodpy.core.state.global_index#

Machine-wide global index federating N HydroModPy workspaces.

The global index lives at <state_dir>/hydromodpy/index.duckdb and keeps a single table workspaces of registered workspace URIs. On GlobalIndex.refresh_federation() it ATTACHes each registered workspace catalog.duckdb in READ_ONLY mode and rebuilds the federated view all_simulations. Cross-workspace queries then hit the federated view from one process without copying any data.

Functions

auto_register_workspace(workspace_root, *[, ...])

Best-effort register workspace_root in the machine-wide global index.

Classes

GlobalIndex([db_path, read_only, ...])

Machine-wide global index over N workspace catalog.duckdb files.