mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
table.drop(ignore=True) option, refs #237
This commit is contained in:
parent
a76e3b33ac
commit
c236894caa
4 changed files with 37 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue