Skip to content

Commit

Permalink
Release 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Jan 26, 2019
1 parent 5466c97 commit 3db4f08
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
30 changes: 30 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=================================

Expand All @@ -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
==================================

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import io
import os

VERSION = "0.7"
VERSION = "0.8"


def get_long_description():
Expand Down

0 comments on commit 3db4f08

Please sign in to comment.