risingwave_meta::controller::utils

Function get_referring_objects_cascade

source
pub async fn get_referring_objects_cascade<C>(
    obj_id: ObjectId,
    db: &C,
) -> MetaResult<Vec<PartialObject>>
where C: ConnectionTrait,
Expand description

List all objects that are using the given one in a cascade way. It runs a recursive CTE to find all the dependencies.