MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / state_str

Function state_str

lib/sqlalchemy/orm/base.py:360–366  ·  view source on GitHub ↗

Return a string describing an instance via its InstanceState.

(state: InstanceState[Any])

Source from the content-addressed store, hash-verified

358
359
360def state_str(state: InstanceState[Any]) -> str:
361 """Return a string describing an instance via its InstanceState."""
362
363 if state is None:
364 return "None"
365 else:
366 return "<%s at 0x%x>" % (state.class_.__name__, id(state.obj()))
367
368
369def state_class_str(state: InstanceState[Any]) -> str:

Callers 15

_goMethod · 0.85
instance_strFunction · 0.85
state_attribute_strFunction · 0.85
_warn_for_runid_changedFunction · 0.85
_validate_version_idFunction · 0.85
_load_scalar_attributesFunction · 0.85
expungeMethod · 0.85
_register_persistentMethod · 0.85
_delete_implMethod · 0.85
_mergeMethod · 0.85
_validate_persistentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected