mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 09:54:31 +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
|
|
@ -851,6 +851,14 @@ def test_query_memory_does_not_create_file(tmpdir):
|
|||
["--nl", "-c", "age", "-c", "name"],
|
||||
'{"age": 4, "name": "Cleo"}\n{"age": 2, "name": "Pancakes"}',
|
||||
),
|
||||
(
|
||||
["-c", "name", "--limit", "1"],
|
||||
'[{"name": "Cleo"}]',
|
||||
),
|
||||
(
|
||||
["-c", "name", "--limit", "1", "--offset", "1"],
|
||||
'[{"name": "Pancakes"}]',
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_rows(db_path, args, expected):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue