MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / clear

Method clear

tortoise/apps.py:326–327  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

324 return chain.from_iterable(model_list_generator)
325
326 def clear(self) -> None:
327 self.apps.clear()
328
329 def __contains__(self, key: str) -> bool:
330 return key in self.apps

Callers 9

_reset_appsMethod · 0.45
_generate_db_fieldsMethod · 0.45
test_m2m_clearFunction · 0.45
_reset_tortoiseFunction · 0.45
_reset_tortoiseFunction · 0.45
_reset_tortoiseFunction · 0.45
_reset_tortoiseFunction · 0.45
test__clearFunction · 0.45
test__clearFunction · 0.45

Calls

no outgoing calls

Tested by 7

test_m2m_clearFunction · 0.36
_reset_tortoiseFunction · 0.36
_reset_tortoiseFunction · 0.36
_reset_tortoiseFunction · 0.36
_reset_tortoiseFunction · 0.36
test__clearFunction · 0.36
test__clearFunction · 0.36