diff --git a/docs/full_text_search.rst b/docs/full_text_search.rst index f30a530e..5dc0a543 100644 --- a/docs/full_text_search.rst +++ b/docs/full_text_search.rst @@ -128,7 +128,7 @@ To set up full-text search for a table, you need to do two things: Configuring FTS using sqlite-utils ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -`sqlite-utils `__ is a CLI utility and Python library for manipulating SQLite databases. You can use `it from Python code `__ to configure FTS search, or you can achieve the same goal `using the accompanying command-line tool `__. +`sqlite-utils `__ is a CLI utility and Python library for manipulating SQLite databases. You can use `it from Python code `__ to configure FTS search, or you can achieve the same goal `using the accompanying command-line tool `__. Here's how to use ``sqlite-utils`` to enable full-text search for an ``items`` table across the ``name`` and ``description`` columns:: @@ -144,7 +144,7 @@ If your data starts out in CSV files, you can use Datasette's companion tool `cs Configuring FTS by hand ~~~~~~~~~~~~~~~~~~~~~~~ -We recommend using `sqlite-utils `__, but if you want to hand-roll a SQLite full-text search table you can do so using the following SQL. +We recommend using `sqlite-utils `__, but if you want to hand-roll a SQLite full-text search table you can do so using the following SQL. To enable full-text search for a table called ``items`` that works against the ``name`` and ``description`` columns, you would run this SQL to create a new ``items_fts`` FTS virtual table: diff --git a/docs/testing_plugins.rst b/docs/testing_plugins.rst index d8ebdc77..bacfd57b 100644 --- a/docs/testing_plugins.rst +++ b/docs/testing_plugins.rst @@ -60,7 +60,7 @@ Using pytest fixtures A common pattern for Datasette plugins is to create a fixture which sets up a temporary test database and wraps it in a Datasette instance. -Here's an example that uses the `sqlite-utils library `__ to populate a temporary test database. It also sets the title of that table using a simulated ``metadata.json`` congiguration: +Here's an example that uses the `sqlite-utils library `__ to populate a temporary test database. It also sets the title of that table using a simulated ``metadata.json`` congiguration: .. code-block:: python