Apply unique filtering to the objects returned by this :class:`_asyncio.AsyncResult`. Refer to :meth:`_engine.Result.unique` in the synchronous SQLAlchemy API for a complete behavioral description.
(self, strategy: Optional[_UniqueFilterType] = None)
| 166 | |
| 167 | @_generative |
| 168 | def unique(self, strategy: Optional[_UniqueFilterType] = None) -> Self: |
| 169 | """Apply unique filtering to the objects returned by this |
| 170 | :class:`_asyncio.AsyncResult`. |
| 171 | |
| 172 | Refer to :meth:`_engine.Result.unique` in the synchronous |
| 173 | SQLAlchemy API for a complete behavioral description. |
| 174 | |
| 175 | """ |
| 176 | self._unique_filter_state = (set(), strategy) |
| 177 | return self |
| 178 | |
| 179 | def columns(self, *col_expressions: _KeyIndexType) -> Self: |
| 180 | r"""Establish the columns that should be returned in each row. |