mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-10-07 18:07:03 +02:00
Release 1.12
This commit is contained in:
parent
169ea455fc
commit
a0a65f9a64
3 changed files with 13 additions and 1 deletions
|
|
@ -2,6 +2,16 @@
|
||||||
Changelog
|
Changelog
|
||||||
===========
|
===========
|
||||||
|
|
||||||
|
.. _v1_12:
|
||||||
|
|
||||||
|
1.12 (2019-11-04)
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
Python library utilities for deleting records (`#62 <https://github.com/simonw/sqlite-utils/issues/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:
|
.. _v1_11:
|
||||||
|
|
||||||
1.11 (2019-09-02)
|
1.11 (2019-09-02)
|
||||||
|
|
|
||||||
|
|
@ -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))
|
>>> db["compound_dogs"].delete((5, 3))
|
||||||
|
|
||||||
|
.. _python_api_delete_where:
|
||||||
|
|
||||||
Deleting multiple records
|
Deleting multiple records
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
|
|
||||||
VERSION = "1.11"
|
VERSION = "1.12"
|
||||||
|
|
||||||
|
|
||||||
def get_long_description():
|
def get_long_description():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue