mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 17:34:32 +02:00
sqlite-utils rows --limit and --offset options, closes #381
This commit is contained in:
parent
1d44b0cc27
commit
324ebc3130
4 changed files with 30 additions and 1 deletions
|
|
@ -585,6 +585,8 @@ See :ref:`cli_rows`.
|
|||
|
||||
Options:
|
||||
-c, --column TEXT Columns to return
|
||||
--limit INTEGER Number of rows to return - defaults to everything
|
||||
--offset INTEGER SQL offset to use
|
||||
--nl Output newline-delimited JSON
|
||||
--arrays Output rows as arrays instead of objects
|
||||
--csv Output CSV
|
||||
|
|
|
|||
|
|
@ -449,6 +449,8 @@ You can use the ``-c`` option to specify a subset of columns to return::
|
|||
[{"age": 4, "name": "Cleo"},
|
||||
{"age": 2, "name": "Pancakes"}]
|
||||
|
||||
Use ``--limit N`` to only return the first ``N`` rows. Use ``--offset N`` to return rows starting from the specified offset.
|
||||
|
||||
.. _cli_tables:
|
||||
|
||||
Listing tables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue