table.drop(ignore=True) option, refs #237

This commit is contained in:
Simon Willison 2021-02-25 09:05:08 -08:00
commit c236894caa
4 changed files with 37 additions and 5 deletions

View file

@ -1026,6 +1026,12 @@ You can drop a table or view using the ``.drop()`` method:
db["my_table"].drop()
Pass ``ignore=True`` if you want to ignore the error caused by the table or view not existing.
.. code-block:: python
db["my_table"].drop(ignore=True)
.. _python_api_transform:
Transforming a table