MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _flush_warning

Method _flush_warning

lib/sqlalchemy/orm/session.py:4357–4363  ·  view source on GitHub ↗
(self, method: Any)

Source from the content-addressed store, hash-verified

4355 self._flushing = False
4356
4357 def _flush_warning(self, method: Any) -> None:
4358 util.warn(
4359 "Usage of the '%s' operation is not currently supported "
4360 "within the execution stage of the flush process. "
4361 "Results may not be consistent. Consider using alternative "
4362 "event listeners or connection-level operations instead." % method
4363 )
4364
4365 def _is_clean(self) -> bool:
4366 return (

Callers 7

addMethod · 0.95
add_allMethod · 0.95
deleteMethod · 0.95
mergeMethod · 0.95
appendFunction · 0.80
removeFunction · 0.80
set_Function · 0.80

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected