MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _someattr_history

Method _someattr_history

test/orm/test_attributes.py:1774–1783  ·  view source on GitHub ↗
(self, f, **kw)

Source from the content-addressed store, hash-verified

1772 return Foo, Bar
1773
1774 def _someattr_history(self, f, **kw):
1775 passive = kw.pop("passive", None)
1776 if passive is True:
1777 kw["passive"] = attributes.PASSIVE_NO_INITIALIZE
1778 elif passive is False:
1779 kw["passive"] = attributes.PASSIVE_OFF
1780
1781 return attributes.get_state_history(
1782 attributes.instance_state(f), "someattr", **kw
1783 )
1784
1785 def _commit_someattr(self, f):
1786 attributes.instance_state(f)._commit(

Callers 15

test_scalar_initMethod · 0.95
test_object_initMethod · 0.95
test_object_replaceMethod · 0.95
test_object_set_noneMethod · 0.95
test_object_delMethod · 0.95
test_scalar_setMethod · 0.95
test_scalar_set_NoneMethod · 0.95
test_scalar_delMethod · 0.95

Calls 1

popMethod · 0.45

Tested by

no test coverage detected