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

Method execute_script

tortoise/backends/oracle/client.py:83–90  ·  view source on GitHub ↗
(self, query: str)

Source from the content-addressed store, hash-verified

81
82 @translate_exceptions
83 async def execute_script(self, query: str) -> None:
84 async with self.acquire_connection() as connection:
85 self.log.debug(query)
86 async with connection.cursor() as cursor:
87 for q in query.split(";"):
88 if not q.strip():
89 continue
90 await cursor.execute(q)
91
92 @translate_exceptions
93 async def execute_insert(self, query: str, values: list) -> int:

Callers 2

db_createMethod · 0.95
db_deleteMethod · 0.95

Calls 1

acquire_connectionMethod · 0.95

Tested by

no test coverage detected