You are viewing documentation about an older version (1.29.1). View latest version

snowflake.snowpark.catalog.Catalog.listViews¶

Catalog.listViews(*, database: Optional[Union[str, DatabaseModel]] = None, schema: Optional[Union[str, ModelSchemaModel]] = None, pattern: Optional[str] = None, like: Optional[str] = None) → List[View][source]¶

List views in the current session. If database or schema are provided, list views in the given database or schema, otherwise list views in the current database/schema.

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

  • schema – schema name or Schema 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.