MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / db_create

Method db_create

tortoise/backends/mysql/client.py:168–171  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 self._template.clear()
167
168 async def db_create(self) -> None:
169 await self.create_connection(with_db=False)
170 await self.execute_script(f"CREATE DATABASE {self.database}")
171 await self.close()
172
173 async def db_delete(self) -> None:
174 await self.create_connection(with_db=False)

Callers

nothing calls this directly

Calls 3

create_connectionMethod · 0.95
execute_scriptMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected