mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
sqlite-utils rows -c, closes #200
This commit is contained in:
parent
309ae84336
commit
6863dc2677
3 changed files with 16 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue