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]¶

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.