snowflake.snowpark.catalog.Catalog.getView¶
- Catalog.getView(view_name: str, *, database: Optional[Union[str, DatabaseModel]] = None, schema: Optional[Union[str, ModelSchemaModel]] = None) View [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.1/snowpark-python/src/snowflake/snowpark/catalog.py#L365-L384)¶
Get the view by name in given database and schema. If database or schema are not provided, get the view in the current database and schema.
- Parameters:
view_name – name of the view.
database – database name or
Database
object. Defaults to None.schema – schema name or
Schema
object. Defaults to None.