You are viewing documentation about an older version (1.29.1). View latest version

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.29.1/snowpark-python/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.

语言: 中文