common_catalog

Function parse_optional_catalog_and_schema_from_db_string

Source
pub fn parse_optional_catalog_and_schema_from_db_string(
    db: &str,
) -> (Option<String>, String)
Expand description

Attempt to parse catalog and schema from given database name

Similar to parse_catalog_and_schema_from_db_string but returns an optional catalog if it’s not provided in the database name.