pub async fn check_object_refer_for_drop<C>(
object_type: ObjectType,
object_id: ObjectId,
db: &C,
) -> MetaResult<()>where
C: ConnectionTrait,
Expand description
check_object_refer_for_drop
checks whether the object is used by other objects except indexes.
It returns an error that contains the details of the referring objects if it is used by others.