snowflake.core.view.ViewResource¶
- class snowflake.core.view.ViewResource(name: Annotated[str, Strict(strict=True)], collection: ViewCollection)¶
 Bases:
SchemaObjectReferenceMixin[ViewCollection]Represents a reference to a Snowflake view.
With this view reference, you can drop and fetch information about views.
Attributes
- database¶
 
- fully_qualified_name¶
 
- root¶
 
Methods
- drop() None¶
 Drop this view.
Examples
Deleting a view using its reference:
>>> view_reference.drop()