MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / except_all

Method except_all

lib/sqlalchemy/orm/query.py:2227–2238  ·  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

2225 return self._set_op(expression.except_, *q)
2226
2227 def except_all(self, *q: Query[Any]) -> Self:
2228 """Produce an EXCEPT ALL of this Query against one or more queries.
2229
2230 Works the same way as :meth:`~sqlalchemy.orm.query.Query.union`. See
2231 that method for usage examples.
2232
2233 .. seealso::
2234
2235 :meth:`_sql.Select.except_all` - v2 equivalent method.
2236
2237 """
2238 return self._set_op(expression.except_all, *q)
2239
2240 @_generative
2241 @_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