sqlite-utils rows -c, closes #200

This commit is contained in:
Simon Willison 2020-11-06 16:28:41 -08:00
commit 6863dc2677
3 changed files with 16 additions and 1 deletions

View file

@ -198,6 +198,12 @@ You can return every row in a specified table using the ``rows`` command::
This command accepts the same output options as ``query`` - so you can pass ``--nl``, ``--csv``, ``--tsv``, ``--no-headers``, ``--table`` and ``--fmt``.
You can use the ``-c`` option to specify a subset of columns to return::
$ sqlite-utils rows dogs.db dogs -c age -c name
[{"age": 4, "name": "Cleo"},
{"age": 2, "name": "Pancakes"}]
.. _cli_tables:
Listing tables