Skip to content

Commit 3db4f08

Browse files
committed
Release 0.8
1 parent 5466c97 commit 3db4f08

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

docs/changelog.rst

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

5+
.. _v0_8:
6+
7+
0.8 (2019-01-25)
8+
----------------
9+
10+
Two new commands: ``sqlite-utils csv`` and ``sqlite-utils json``
11+
12+
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.
13+
14+
::
15+
16+
$ sqlite-utils json --help
17+
Usage: sqlite-utils json [OPTIONS] PATH SQL
18+
19+
Execute SQL query and return the results as JSON
20+
21+
Options:
22+
--nl Output newline-delimited JSON
23+
--arrays Output rows as arrays instead of objects
24+
--help Show this message and exit.
25+
26+
$ sqlite-utils csv --help
27+
Usage: sqlite-utils csv [OPTIONS] PATH SQL
28+
29+
Execute SQL query and return the results as CSV
30+
31+
Options:
32+
--no-headers Exclude headers from CSV output
33+
--help Show this message and exit.
34+
535
.. _v0_7:
636

737
0.7 (2019-01-24)

docs/cli.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
The ``sqlite-utils`` command-line tool can be used to manipulate SQLite databases in a number of different ways.
88

9+
.. _cli_csv:
10+
911
Running queries and returning CSV
1012
=================================
1113

@@ -22,6 +24,8 @@ This will default to including the column names as a header row. To exclude the
2224
1,4,Cleo
2325
2,2,Pancakes
2426

27+
.. _cli_json:
28+
2529
Running queries and returning JSON
2630
==================================
2731

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 = "0.7"
5+
VERSION = "0.8"
66

77

88
def get_long_description():

0 commit comments

Comments
 (0)