Skip to content

Commit 7c637b1

Browse files
committed
Release 3.21
Refs #348, #364, #366, #368, #371, #372, #374, #375, #376, #379 Closes #380
1 parent 1291415 commit 7c637b1

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/changelog.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22
Changelog
33
===========
44

5+
.. _v3_21:
6+
7+
3.21 (2022-01-10)
8+
-----------------
9+
10+
CLI and Python library improvements to help run `ANALYZE <https://www.sqlite.org/lang_analyze.html>`__ after creating indexes or inserting rows, to gain better performance from the SQLite query planner when it runs against indexes.
11+
12+
Three new CLI commands: ``create-database``, ``analyze`` and ``bulk``.
13+
14+
- New ``sqlite-utils create-database`` command for creating new empty database files. (:issue:`348`)
15+
- New Python methods for running ``ANALYZE`` against a database, table or index: ``db.analyze()`` and ``table.analyze()``, see :ref:`python_api_analyze`. (:issue:`366`)
16+
- New :ref:`sqlite-utils analyze command <cli_analyze>` for running ``ANALYZE`` using the CLI. (:issue:`379`)
17+
- The ``create-index``, ``insert`` and ``update`` commands now have a new ``--analyze`` option for running ``ANALYZE`` after the command has completed. (:issue:`379`)
18+
- New :ref:`sqlite-utils bulk command <cli_bulk>` which can import records in the same way as ``sqlite-utils insert`` (from JSON, CSV or TSV) and use them to bulk execute a parametrized SQL query. (:issue:`375`)
19+
- The CLI tool can now also be run using ``python -m sqlite_utils``. (:issue:`368`)
20+
- Using ``--fmt`` now implies ``--table``, so you don't need to pass both options. (:issue:`374`)
21+
- The ``--convert`` function applied to rows can now modify the row in place. (:issue:`371`)
22+
- The :ref:`insert-files command <cli_insert_files>` supports two new columns: ``stem`` and ``suffix``. (:issue:`372`)
23+
- The ``--nl`` import option now ignores blank lines in the input. (:issue:`376`)
24+
- Fixed bug where streaming input to the ``insert`` command with ``--batch-size 1`` would appear to only commit after several rows had been ingested, due to unnecessary input buffering. (:issue:`364`)
25+
526
.. _v3_20:
627

728
3.20 (2022-01-05)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import os
44

5-
VERSION = "3.20"
5+
VERSION = "3.21"
66

77

88
def get_long_description():

0 commit comments

Comments
 (0)