diff --git a/docs/changelog.rst b/docs/changelog.rst index 4d56e96..ee23dd9 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,16 @@ Changelog =========== +.. _v1_12: + +1.12 (2019-11-04) +----------------- + +Python library utilities for deleting records (`#62 `__) + +- ``db["tablename"].delete(4)`` to delete by primary key, see :ref:`python_api_delete` +- ``db["tablename"].delete_where("id > ?", [3])`` to delete by a where clause, see :ref:`python_api_delete_where` + .. _v1_11: 1.11 (2019-09-02) diff --git a/docs/python-api.rst b/docs/python-api.rst index cadad15..40d3289 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -396,6 +396,8 @@ The ``delete()`` method takes the primary key of the record. This can be a tuple >>> db["compound_dogs"].delete((5, 3)) +.. _python_api_delete_where: + Deleting multiple records ========================= diff --git a/setup.py b/setup.py index 8e216c6..b71fd09 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages import io import os -VERSION = "1.11" +VERSION = "1.12" def get_long_description():