MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / set_committed_value

Method set_committed_value

lib/sqlalchemy/orm/attributes.py:1202–1207  ·  view source on GitHub ↗

set an attribute value on the given instance and 'commit' it.

(self, state, dict_, value)

Source from the content-addressed store, hash-verified

1200 return self.get(state, dict_, passive=passive)
1201
1202 def set_committed_value(self, state, dict_, value):
1203 """set an attribute value on the given instance and 'commit' it."""
1204
1205 dict_[self.key] = value
1206 state._commit(dict_, [self.key])
1207 return value
1208
1209
1210class _ScalarAttributeImpl(_AttributeImpl):

Callers 11

getMethod · 0.95
set_committed_valueFunction · 0.45
_load_for_pathMethod · 0.45
load_scalar_from_subqMethod · 0.45
_load_via_childMethod · 0.45
_load_via_parentMethod · 0.45
test_helpersMethod · 0.45
new_versionMethod · 0.45

Calls 1

_commitMethod · 0.80

Tested by 2

test_helpersMethod · 0.36