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

Method _init

tortoise/connection.py:80–86  ·  view source on GitHub ↗
(self, db_config: DBConfigType, create_db: bool)

Source from the content-addressed store, hash-verified

78 self._storage_var.set({})
79
80 async def _init(self, db_config: DBConfigType, create_db: bool) -> None:
81 if self._db_config is None:
82 self._db_config = db_config
83 else:
84 self._db_config.update(db_config)
85 self._create_db = create_db
86 await self._init_connections()
87
88 def _init_config(self, db_config: DBConfigType, create_db: bool = False) -> None:
89 if self._db_config is None:

Callers 6

initMethod · 0.80
test_initFunction · 0.80

Calls 2

_init_connectionsMethod · 0.95
updateMethod · 0.80