pyflink.table.catalog.Catalog.drop_database#
- Catalog.drop_database(name: str, ignore_if_exists: bool)[source]#
Drop a database.
- Parameters
name – Name of the database to be dropped.
ignore_if_exists – Flag to specify behavior when the database does not exist: if set to false, throw an exception, if set to true, do nothing.
- Raise
CatalogException in case of any runtime exception. DatabaseNotExistException if the given database does not exist.