snowflake.snowpark.catalog.Catalog.list_schemas

Catalog.list_schemas(*, database: Optional[Union[str, DatabaseModel]] = None, pattern: Optional[str] = None, like: Optional[str] = None) List[ModelSchemaModel][source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/catalog.py#L175-L194)

List schemas in the current session. If database is provided, list schemas in the database, otherwise list schemas in the current database.

Parameters:
  • database – database name or Database object. Defaults to None.

  • pattern – the python regex pattern of name to match. Defaults to None.

  • like – the sql style pattern for name to match. Default to None.

Language: English