MCPcopy
hub / github.com/ponyorm/pony / flush_disabled

Method flush_disabled

pony/orm/core.py:1867–1870  ·  view source on GitHub ↗
(cache)

Source from the content-addressed store, hash-verified

1865 = cache.modified_collections = cache.collection_statistics = cache.dbvals_deduplication_cache = None
1866 @contextmanager
1867 def flush_disabled(cache):
1868 cache.noflush_counter += 1
1869 try: yield
1870 finally: cache.noflush_counter -= 1
1871 def flush(cache):
1872 if cache.noflush_counter: return
1873 assert cache.is_alive

Callers 11

flushMethod · 0.80
__set__Method · 0.80
__set__Method · 0.80
countMethod · 0.80
addMethod · 0.80
removeMethod · 0.80
__init__Method · 0.80
_delete_Method · 0.80
setMethod · 0.80
flushMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected