MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / except_all

Method except_all

lib/sqlalchemy/orm/query.py:2257–2268  ·  view source on GitHub ↗

Produce an EXCEPT ALL of this Query against one or more queries. Works the same way as :meth:`~sqlalchemy.orm.query.Query.union`. See that method for usage examples. .. seealso:: :meth:`_sql.Select.except_all` - v2 equivalent method.

(self, *q: Query[Any])

Source from the content-addressed store, hash-verified

2255 return self._set_op(expression.except_, *q)
2256
2257 def except_all(self, *q: Query[Any]) -> Self:
2258 """Produce an EXCEPT ALL of this Query against one or more queries.
2259
2260 Works the same way as :meth:`~sqlalchemy.orm.query.Query.union`. See
2261 that method for usage examples.
2262
2263 .. seealso::
2264
2265 :meth:`_sql.Select.except_all` - v2 equivalent method.
2266
2267 """
2268 return self._set_op(expression.except_all, *q)
2269
2270 @_generative
2271 @_assertions(_no_statement_condition, _no_limit_offset)

Callers 2

get_table_namesMethod · 0.45

Calls 1

_set_opMethod · 0.95

Tested by

no test coverage detected