snowflake.snowpark.catalog.Catalog.procedure_exists¶
- Catalog.procedure_exists(procedure: Union[str, Procedure], arg_types: Optional[List[DataType]] = None, *, database: Optional[Union[str, DatabaseModel]] = None, schema: Optional[Union[str, ModelSchemaModel]] = None) bool [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.1/snowpark-python/src/snowflake/snowpark/catalog.py#L545-L572)¶
Check if the given procedure exists in the given database and schema. If database or schema are not provided, check if the procedure exists in the current database and schema.
- Parameters:
procedure – procedure name or
Procedure
object.arg_types – list of argument types to uniquely identify the procedure. Defaults to None.
database – database name or
Database
object. Defaults to None.schema – schema name or
Schema
object. Defaults to None.