mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
search --limit now defaults to everything, refs #192
This commit is contained in:
parent
c5a798c15f
commit
79109939c3
2 changed files with 3 additions and 5 deletions
|
|
@ -933,15 +933,14 @@ Use the ``--sql`` option to output the SQL that would be executed, rather than r
|
|||
from [documents]
|
||||
)
|
||||
select
|
||||
original.*,
|
||||
[documents_fts].rank as rank
|
||||
[original].*
|
||||
from
|
||||
[original]
|
||||
join [documents_fts] on [original].rowid = [documents_fts].rowid
|
||||
where
|
||||
[documents_fts] match :query
|
||||
order by
|
||||
rank
|
||||
[documents_fts].rank
|
||||
|
||||
.. _cli_vacuum:
|
||||
|
||||
|
|
|
|||
|
|
@ -986,8 +986,7 @@ def query(
|
|||
@click.option(
|
||||
"--limit",
|
||||
type=int,
|
||||
default=20,
|
||||
help="Number of rows to return, default 20, set to 0 for unlimited",
|
||||
help="Number of rows to return - defaults to everything",
|
||||
)
|
||||
@click.option(
|
||||
"--sql", "show_sql", is_flag=True, help="Show SQL query that would be run"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue