Skip to content

Commit

Permalink
add include_rank parameter to Table.search
Browse files Browse the repository at this point in the history
  • Loading branch information
liunux4odoo authored May 7, 2024
1 parent 577078f commit 381cc73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqlite_utils/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -2641,6 +2641,7 @@ def search(
offset: Optional[int] = None,
where: Optional[str] = None,
where_args: Optional[Union[Iterable, dict]] = None,
include_rank: bool = False,
quote: bool = False,
) -> Generator[dict, None, None]:
"""
Expand All @@ -2654,6 +2655,7 @@ def search(
:param offset: Optional integer SQL offset.
:param where: Extra SQL fragment for the 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
See :ref:`python_api_fts_search`.
Expand All @@ -2673,6 +2675,7 @@ def search(
limit=limit,
offset=offset,
where=where,
include_rank=include_rank,
),
args,
)
Expand Down

0 comments on commit 381cc73

Please sign in to comment.