MCPcopy
hub / github.com/tortoise/tortoise-orm / _get_storage

Method _get_storage

tortoise/connection.py:64–66  ·  view source on GitHub ↗

Get the connection storage dict for the current task context.

(self)

Source from the content-addressed store, hash-verified

62 self._storage_var.set(value)
63
64 def _get_storage(self) -> dict[str, BaseDBAsyncClient]:
65 """Get the connection storage dict for the current task context."""
66 return self._storage_var.get()
67
68 def _set_storage(self, new_storage: dict[str, BaseDBAsyncClient]) -> None:
69 """Set the connection storage dict. Used for testing purposes."""

Callers 14

_storageMethod · 0.95
_copy_storageMethod · 0.95
getMethod · 0.95
setMethod · 0.95
discardMethod · 0.95
init_ormFunction · 0.80
tortoise_initFunction · 0.80
init_ormFunction · 0.80
init_ormFunction · 0.80
init_ormMethod · 0.80
init_ormFunction · 0.80
test_get_storageFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 3

test_get_storageFunction · 0.64
init_and_checkFunction · 0.64
init_and_raiseFunction · 0.64