Skip to main content

hydration_status_query

Function hydration_status_query 

Source
fn hydration_status_query(allowed_lag_secs: i64) -> String
Expand description

Build the shared hydration-status SQL query.

Both get_deployment_hydration_status (one-shot SELECT) and subscribe_deployment_hydration (SUBSCRIBE) use the same CTE logic. The query expects a single $1 parameter for the cluster name LIKE pattern.