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

Method db_delete

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

Source from the content-addressed store, hash-verified

71 await self.close()
72
73 async def db_delete(self) -> None:
74 await self.create_connection(with_db=False)
75 try:
76 await self.execute_script(f'DROP USER "{self.database}" CASCADE')
77 except pyodbc.Error as e:
78 if "does not exist" not in str(e):
79 raise
80 await self.close()
81
82 @translate_exceptions
83 async def execute_script(self, query: str) -> None:

Callers

nothing calls this directly

Calls 3

execute_scriptMethod · 0.95
create_connectionMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected