From 1ffa40301de5bb960e89114de0f5199850a9ed9d Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 22 Feb 2019 18:22:28 -0800 Subject: [PATCH] Releasing 0.12 --- docs/changelog.rst | 10 ++++++++++ docs/cli.rst | 2 ++ docs/python-api.rst | 2 ++ setup.py | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 15a085f..7bc15b0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,16 @@ Changelog =========== +.. _v0_12: + +0.12 (2019-02-22) +----------------- + +- Added ``db[table].rows`` iterator - see :ref:`python_api_rows` +- Replaced ``sqlite-utils json`` and ``sqlite-utils csv`` with a new default subcommand called ``sqlite-utils query`` which defaults to JSON and takes formatting options ``--nl``, ``--csv`` and ``--no-headers`` - see :ref:`cli_query_json` and :ref:`cli_query_csv` +- New ``sqlite-utils rows data.db name-of-table`` command, see :ref:`cli_rows` +- ``sqlite-utils table`` command now takes options ``--counts`` and ``--columns`` plus the standard output format options, see :ref:`cli_tables` + .. _v0_11: 0.11 (2019-02-07) diff --git a/docs/cli.rst b/docs/cli.rst index 6202c79..013a54a 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -86,6 +86,8 @@ You can return every row in a specified table using the ``rows`` subcommand:: This command accepts the same output options as ``query`` - so you can pass ``--nl``, ``--csv`` and ``--no-headers``. +.. _cli_tables: + Listing tables ============== diff --git a/docs/python-api.rst b/docs/python-api.rst index 420cbde..981c061 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -52,6 +52,8 @@ You can also iterate through the table objects themselves using the ``.tables`` >>> db.tables [] +.. _python_api_rows: + Listing rows ============ diff --git a/setup.py b/setup.py index 5062f0f..75b2614 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages import io import os -VERSION = "0.11" +VERSION = "0.12" def get_long_description():