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

Function tortoise_init

tortoise/contrib/sanic/__init__.py:84–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 """
83
84 async def tortoise_init() -> None:
85 await Tortoise.init(
86 config=config,
87 config_file=config_file,
88 db_url=db_url,
89 modules=modules,
90 _enable_global_fallback=_enable_global_fallback,
91 )
92 logger.info("Tortoise-ORM started, %s, %s", get_connections()._get_storage(), Tortoise.apps) # pylint: disable=W0212
93
94 if generate_schemas:
95

Callers 2

init_orm_mainFunction · 0.85
init_ormFunction · 0.85

Calls 3

get_connectionsFunction · 0.90
_get_storageMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…