File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 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
7370.7 (2019-01-24)
Original file line number Diff line number Diff line change 66
77The ``sqlite-utils `` command-line tool can be used to manipulate SQLite databases in a number of different ways.
88
9+ .. _cli_csv :
10+
911Running 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+
2529Running queries and returning JSON
2630==================================
2731
Original file line number Diff line number Diff line change 22import io
33import os
44
5- VERSION = "0.7 "
5+ VERSION = "0.8 "
66
77
88def get_long_description ():
You can’t perform that action at this time.
0 commit comments