mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-12 03:24:23 +02:00
add include_rank parameter to Table.search
This commit is contained in:
parent
577078fe01
commit
381cc730e1
1 changed files with 3 additions and 0 deletions
|
|
@ -2641,6 +2641,7 @@ class Table(Queryable):
|
||||||
offset: Optional[int] = None,
|
offset: Optional[int] = None,
|
||||||
where: Optional[str] = None,
|
where: Optional[str] = None,
|
||||||
where_args: Optional[Union[Iterable, dict]] = None,
|
where_args: Optional[Union[Iterable, dict]] = None,
|
||||||
|
include_rank: bool = False,
|
||||||
quote: bool = False,
|
quote: bool = False,
|
||||||
) -> Generator[dict, None, None]:
|
) -> Generator[dict, None, None]:
|
||||||
"""
|
"""
|
||||||
|
|
@ -2654,6 +2655,7 @@ class Table(Queryable):
|
||||||
:param offset: Optional integer SQL offset.
|
:param offset: Optional integer SQL offset.
|
||||||
:param where: Extra SQL fragment for the WHERE clause
|
:param where: Extra SQL fragment for the WHERE clause
|
||||||
:param where_args: Arguments to use for :param placeholders in the extra WHERE clause
|
:param where_args: Arguments to use for :param placeholders in the extra WHERE clause
|
||||||
|
:param include_rank: Select the search rank column in the final query
|
||||||
:param quote: Apply quoting to disable any special characters in the search query
|
:param quote: Apply quoting to disable any special characters in the search query
|
||||||
|
|
||||||
See :ref:`python_api_fts_search`.
|
See :ref:`python_api_fts_search`.
|
||||||
|
|
@ -2673,6 +2675,7 @@ class Table(Queryable):
|
||||||
limit=limit,
|
limit=limit,
|
||||||
offset=offset,
|
offset=offset,
|
||||||
where=where,
|
where=where,
|
||||||
|
include_rank=include_rank,
|
||||||
),
|
),
|
||||||
args,
|
args,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue