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

Method db_create

tortoise/backends/oracle/client.py:67–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 return OraclePoolConnectionWrapper(self, self._pool_init_lock)
66
67 async def db_create(self) -> None:
68 await self.create_connection(with_db=False)
69 await self.execute_script(f'CREATE USER "{self.database}" IDENTIFIED BY "{self.password}"')
70 await self.execute_script(f'GRANT ALL PRIVILEGES TO "{self.database}"')
71 await self.close()
72
73 async def db_delete(self) -> None:
74 await self.create_connection(with_db=False)

Callers

nothing calls this directly

Calls 3

execute_scriptMethod · 0.95
create_connectionMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected