risingwave_meta::controller::utils

Function check_relation_name_duplicate

source
pub async fn check_relation_name_duplicate<C>(
    name: &str,
    database_id: DatabaseId,
    schema_id: SchemaId,
    db: &C,
) -> MetaResult<()>
where C: ConnectionTrait,
Expand description

check_relation_name_duplicate checks whether the relation name is already used in the target namespace.