You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/json_api.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,16 +235,16 @@ You can filter the data returned by the table based on column values using a que
235
235
Returns rows where the column does not match the value.
236
236
237
237
``?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).
239
239
240
240
``?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).
242
242
243
243
``?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).
245
245
246
246
``?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).
248
248
249
249
``?column__gt=value``
250
250
Rows which are greater than the specified value.
@@ -358,8 +358,8 @@ Special table arguments
358
358
359
359
Some examples:
360
360
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)>`__
363
363
364
364
``?_through={json}``
365
365
This can be used to filter rows via a join against another table.
0 commit comments