mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Documentation and tests for table.drop() method
This commit is contained in:
parent
9cb045284e
commit
535a5ea476
3 changed files with 19 additions and 1 deletions
|
|
@ -567,6 +567,17 @@ If you want to ensure that every foreign key column in your database has a corre
|
|||
|
||||
db.index_foreign_keys()
|
||||
|
||||
.. _python_api_drop:
|
||||
|
||||
Dropping a table
|
||||
================
|
||||
|
||||
You can drop a table by using the ``.drop()`` method:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
db["my_table"].drop()
|
||||
|
||||
.. _python_api_hash:
|
||||
|
||||
Setting an ID based on the hash of the row contents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue