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

Method _init_config

tortoise/connection.py:88–93  ·  view source on GitHub ↗
(self, db_config: DBConfigType, create_db: bool = False)

Source from the content-addressed store, hash-verified

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:
90 self._db_config = db_config
91 else:
92 self._db_config.update(db_config)
93 self._create_db = create_db
94
95 @property
96 def db_config(self) -> DBConfigType:

Calls 1

updateMethod · 0.80