MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _as_for_update

Method _as_for_update

lib/sqlalchemy/sql/schema.py:4386–4390  ·  view source on GitHub ↗
(self, for_update: bool)

Source from the content-addressed store, hash-verified

4384 self.for_update = for_update
4385
4386 def _as_for_update(self, for_update: bool) -> FetchedValue:
4387 if for_update == self.for_update:
4388 return self
4389 else:
4390 return self._clone(for_update)
4391
4392 def _copy(self) -> FetchedValue:
4393 return FetchedValue(self.for_update)

Callers

nothing calls this directly

Calls 1

_cloneMethod · 0.95

Tested by

no test coverage detected