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

Method spoil

lib/sqlalchemy/sql/lambdas.py:645–650  ·  view source on GitHub ↗

Return a new :class:`.StatementLambdaElement` that will run all lambdas unconditionally each time.

(self)

Source from the content-addressed store, hash-verified

643 return self._proxied.is_dml
644
645 def spoil(self) -> NullLambdaStatement:
646 """Return a new :class:`.StatementLambdaElement` that will run
647 all lambdas unconditionally each time.
648
649 """
650 return NullLambdaStatement(self.fn())
651
652
653class NullLambdaStatement(roles.AllowsLambdaRole, elements.ClauseElement):

Callers

nothing calls this directly

Calls 2

NullLambdaStatementClass · 0.85
fnMethod · 0.45

Tested by

no test coverage detected