risingwave_meta::controller::utils

Function check_schema_name_duplicate

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

check_schema_name_duplicate checks whether the schema name is already used in the target database.