Skip to content

Commit df15adf

Browse files
committed
Avoid double-quoted strings in SQL in docs
1 parent c664cfe commit df15adf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/json_api.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,16 @@ You can filter the data returned by the table based on column values using a que
235235
Returns rows where the column does not match the value.
236236

237237
``?column__contains=value``
238-
Rows where the string column contains the specified value (``column like "%value%"`` in SQL).
238+
Rows where the string column contains the specified value (``column like '%value%'`` in SQL).
239239

240240
``?column__notcontains=value``
241-
Rows where the string column does not contain the specified value (``column not like "%value%"`` in SQL).
241+
Rows where the string column does not contain the specified value (``column not like '%value%'`` in SQL).
242242

243243
``?column__endswith=value``
244-
Rows where the string column ends with the specified value (``column like "%value"`` in SQL).
244+
Rows where the string column ends with the specified value (``column like '%value'`` in SQL).
245245

246246
``?column__startswith=value``
247-
Rows where the string column starts with the specified value (``column like "value%"`` in SQL).
247+
Rows where the string column starts with the specified value (``column like 'value%'`` in SQL).
248248

249249
``?column__gt=value``
250250
Rows which are greater than the specified value.
@@ -358,8 +358,8 @@ Special table arguments
358358

359359
Some examples:
360360

361-
* `facetable?_where=_neighborhood like "%c%"&_where=_city_id=3 <https://latest.datasette.io/fixtures/facetable?_where=_neighborhood%20like%20%22%c%%22&_where=_city_id=3>`__
362-
* `facetable?_where=_city_id in (select id from facet_cities where name != "Detroit") <https://latest.datasette.io/fixtures/facetable?_where=_city_id%20in%20(select%20id%20from%20facet_cities%20where%20name%20!=%20%22Detroit%22)>`__
361+
* `facetable?_where=_neighborhood like '%c%'&_where=_city_id=3 <https://latest.datasette.io/fixtures/facetable?_where=_neighborhood%20like%20%27%c%%27&_where=_city_id=3>`__
362+
* `facetable?_where=_city_id in (select id from facet_cities where name != 'Detroit') <https://latest.datasette.io/fixtures/facetable?_where=_city_id%20in%20(select%20id%20from%20facet_cities%20where%20name%20!=%20%27Detroit%27)>`__
363363

364364
``?_through={json}``
365365
This can be used to filter rows via a join against another table.

0 commit comments

Comments
 (0)