MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _no_clauseelement_condition

Method _no_clauseelement_condition

lib/sqlalchemy/orm/query.py:433–441  ·  view source on GitHub ↗
(self, meth: str)

Source from the content-addressed store, hash-verified

431 self._order_by_clauses = self._group_by_clauses = ()
432
433 def _no_clauseelement_condition(self, meth: str) -> None:
434 if not self._enable_assertions:
435 return
436 if self._order_by_clauses:
437 raise sa_exc.InvalidRequestError(
438 "Query.%s() being called on a "
439 "Query with existing criterion. " % meth
440 )
441 self._no_criterion_condition(meth)
442
443 def _no_statement_condition(self, meth: str) -> None:
444 if not self._enable_assertions:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected