sqlite-utils rows --order option, closes #469

This commit is contained in:
Simon Willison 2022-08-26 21:10:20 -07:00
commit 7a9a6363ff
4 changed files with 16 additions and 0 deletions

View file

@ -467,6 +467,8 @@ Or pass named parameters using ``--where`` in combination with ``-p``::
$ sqlite-utils rows dogs.db dogs -c name --where 'name = :name' -p name Cleo
[{"name": "Cleo"}]
You can define a sort order using ``--order column`` or ``--order 'column desc'``.
Use ``--limit N`` to only return the first ``N`` rows. Use ``--offset N`` to return rows starting from the specified offset.
.. note::