validate_subscription_deletion

Function validate_subscription_deletion 

Source
pub async fn validate_subscription_deletion<C>(
    txn: &C,
    subscription_id: SubscriptionId,
) -> MetaResult<()>
where C: ConnectionTrait,
Expand description

Validate that subscription can be safely deleted, meeting any of the following conditions:

  1. The upstream table is not referred to by any cross-db mv.
  2. After deleting the subscription, the upstream table still has at least one subscription.