snowflake.core.procedure.ProcedureResource¶
- class snowflake.core.procedure.ProcedureResource(name_with_args: Annotated[str, Strict(strict=True)], collection: ProcedureCollection)¶
Bases:
SchemaObjectReferenceMixin[ProcedureCollection]Represents a reference to a Snowflake procedure.
With this procedure reference, you can create and fetch information about procedures, as well as perform certain actions on them.
Attributes
- database¶
- fully_qualified_name¶
- root¶
Methods
- call(call_argument_list: CallArgumentList | None = None) Any¶
Call this procedure.
Examples
Calling a procedure with no arguments using its reference:
Calling a procedure with 2 arguments using its reference:
- drop(if_exists: bool = False) None¶
Drop this procedure.
- Parameters:
if_exists (bool, optional) – Whether to error if the procedure doesn’t exist. Default is
False.
Examples
Dropping a procedure using its reference, erroring if it doesn’t exist:
Dropping a procedure using its reference, if it exists: