MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _clone

Method _clone

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

Source from the content-addressed store, hash-verified

4393 return FetchedValue(self.for_update)
4394
4395 def _clone(self, for_update: bool) -> Self:
4396 n = self.__class__.__new__(self.__class__)
4397 n.__dict__.update(self.__dict__)
4398 n.__dict__.pop("column", None)
4399 n.for_update = for_update
4400 return n
4401
4402 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:
4403 column = parent

Callers 1

_as_for_updateMethod · 0.95

Calls 3

__new__Method · 0.45
updateMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected