From 3db4f08f19b2b1a19431a092f43605031092b97f Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 25 Jan 2019 18:13:29 -0800 Subject: [PATCH] Release 0.8 --- docs/changelog.rst | 30 ++++++++++++++++++++++++++++++ docs/cli.rst | 4 ++++ setup.py | 2 +- 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 2064dff..33ede23 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -2,6 +2,36 @@ Changelog =========== +.. _v0_8: + +0.8 (2019-01-25) +---------------- + +Two new commands: ``sqlite-utils csv`` and ``sqlite-utils json`` + +These commansd execute a SQL query and return the results as CSV or JSON. See :ref:`cli_csv` and :ref:`cli_json` for more details. + +:: + + $ sqlite-utils json --help + Usage: sqlite-utils json [OPTIONS] PATH SQL + + Execute SQL query and return the results as JSON + + Options: + --nl Output newline-delimited JSON + --arrays Output rows as arrays instead of objects + --help Show this message and exit. + + $ sqlite-utils csv --help + Usage: sqlite-utils csv [OPTIONS] PATH SQL + + Execute SQL query and return the results as CSV + + Options: + --no-headers Exclude headers from CSV output + --help Show this message and exit. + .. _v0_7: 0.7 (2019-01-24) diff --git a/docs/cli.rst b/docs/cli.rst index 7636f6c..c98230e 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -6,6 +6,8 @@ The ``sqlite-utils`` command-line tool can be used to manipulate SQLite databases in a number of different ways. +.. _cli_csv: + Running queries and returning CSV ================================= @@ -22,6 +24,8 @@ This will default to including the column names as a header row. To exclude the 1,4,Cleo 2,2,Pancakes +.. _cli_json: + Running queries and returning JSON ================================== diff --git a/setup.py b/setup.py index 1e029b3..14a9863 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages import io import os -VERSION = "0.7" +VERSION = "0.8" def get_long_description():