MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / unique

Method unique

lib/sqlalchemy/ext/asyncio/result.py:168–177  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

_iterMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected