MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / spoil

Method spoil

lib/sqlalchemy/sql/lambdas.py:646–651  ·  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

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

Callers

nothing calls this directly

Calls 2

NullLambdaStatementClass · 0.85
fnMethod · 0.45

Tested by

no test coverage detected