risingwave_meta::controller::utils

Function ensure_object_not_refer

source
pub async fn ensure_object_not_refer<C>(
    object_type: ObjectType,
    object_id: ObjectId,
    db: &C,
) -> MetaResult<()>
where C: ConnectionTrait,
Expand description

ensure_object_not_refer ensures that object are not used by any other ones except indexes.