snowflake.snowpark.catalog.Catalog.schemaExists¶
- Catalog.schemaExists(schema: Union[str, ModelSchemaModel], *, database: Optional[Union[str, DatabaseModel]] = None) bool [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.32.0/src/snowflake/snowpark/catalog.py#L474-L493)¶
Check if the given schema exists in the given database. If database is not provided, check if the schema exists in the current database.
- Parameters:
schema – schema name or
Schema
object.database – database name or
Database
object. Defaults to None.