sqlite-utils search --quote option, closes #296

This commit is contained in:
Simon Willison 2021-08-18 13:10:44 -07:00
commit ccf128cd6d
3 changed files with 48 additions and 15 deletions

View file

@ -1519,6 +1519,8 @@ By default it shows the most relevant matches first. You can specify a different
# Sort by created in descending order
$ sqlite-utils search mydb.db documents searchterm -o 'created desc'
SQLite `advanced search syntax <https://www.sqlite.org/fts5.html#full_text_query_syntax>`__ is enabled by default. To run a search with automatic quoting use the ``--quote`` option.
You can specify a subset of columns to be returned using the ``-c`` option one or more times::
$ sqlite-utils search mydb.db documents searchterm -c title -c created