Skip to content

Commit a558d2f

Browse files
committed
updated docs with Array.all and Array.any
1 parent 3fc994d commit a558d2f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/src/piccolo/schema/column_types.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,15 @@ Accessing individual elements
221221
=============================
222222

223223
.. automethod:: Array.__getitem__
224+
225+
===
226+
any
227+
===
228+
229+
.. automethod:: Array.any
230+
231+
===
232+
all
233+
===
234+
235+
.. automethod:: Array.all

piccolo/columns/column_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ def all(self, value: t.Any) -> Where:
14691469
14701470
.. code-block:: python
14711471
1472-
>>> Ticket.select().where(Ticket.seat_numbers.any(510)).run_sync()
1472+
>>> Ticket.select().where(Ticket.seat_numbers.all(510)).run_sync()
14731473
14741474
"""
14751475
engine_type = self._meta.table._meta.db.engine_type

0 commit comments

Comments
 (0)