mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-16 05:24:26 +02:00
Add fts offset docs.
The limit can be passed as a string to the query builder to have an offset. I have tested it using the shorthand `limit=f"15, 30"`, the standard syntax should work too.
This commit is contained in:
parent
36dc7e3909
commit
341f50d2d9
1 changed files with 2 additions and 2 deletions
|
|
@ -1600,8 +1600,8 @@ The ``.search()`` method also accepts the following optional parameters:
|
|||
``columns`` array of strings
|
||||
Columns to return. Defaults to all columns.
|
||||
|
||||
``limit`` integer
|
||||
Number of results to return. Defaults to all results.
|
||||
``limit`` integer or string
|
||||
Number of results to return. Defaults to all results. You can offset the limit by using a string with the shorthand ``limit=f"15, 30"`` or ``limit="30 OFFSET 15"``. Where 15 is the offset and 30 the limit.
|
||||
|
||||
To return just the title and published columns for three matches for ``"dog"`` ordered by ``published`` with the most recent first, use the following:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue