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

Method execute_script

tortoise/backends/mysql/client.py:228–232  ·  view source on GitHub ↗
(self, query: str)

Source from the content-addressed store, hash-verified

226
227 @translate_exceptions
228 async def execute_script(self, query: str) -> None:
229 async with self.acquire_connection() as connection:
230 self.log.debug(query)
231 async with connection.cursor() as cursor:
232 await cursor.execute(query)
233
234
235class TransactionWrapper(MySQLClient, TransactionalDBClient):

Callers 3

db_createMethod · 0.95
db_deleteMethod · 0.95
db_deleteMethod · 0.45

Calls 1

acquire_connectionMethod · 0.95

Tested by

no test coverage detected