MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / except_

Method except_

lib/sqlalchemy/orm/query.py:2244–2255  ·  view source on GitHub ↗

Produce an EXCEPT 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_` - v2 equivalent method.

(self, *q: Query[Any])

Source from the content-addressed store, hash-verified

2242 return self._set_op(expression.intersect_all, *q)
2243
2244 def except_(self, *q: Query[Any]) -> Self:
2245 """Produce an EXCEPT of this Query against one or more queries.
2246
2247 Works the same way as :meth:`~sqlalchemy.orm.query.Query.union`. See
2248 that method for usage examples.
2249
2250 .. seealso::
2251
2252 :meth:`_sql.Select.except_` - v2 equivalent method.
2253
2254 """
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.

Callers 1

get_table_namesMethod · 0.45

Calls 1

_set_opMethod · 0.95

Tested by

no test coverage detected