Method
batch_execute
(self, sql: List[Union[str, Tuple[str, Union[Sequence, Dict[str, Any]]]]])
Source from the content-addressed store, hash-verified
| 283 | return error_msg |
| 284 | |
| 285 | async def batch_execute(self, sql: List[Union[str, Tuple[str, Union[Sequence, Dict[str, Any]]]]]): |
| 286 | final_sql = '' |
| 287 | final_data = [] |
| 288 | for item in sql: |
| 289 | if isinstance(item, str): |
| 290 | query = item |
| 291 | data = () |
| 292 | else: |
| 293 | query, data = item |
| 294 | if query.strip(): |
| 295 | if final_sql: |
| 296 | final_sql += ';\n' |
| 297 | final_sql += query |
| 298 | final_data.extend(data) |
| 299 | await self.execute(final_sql, final_data) |
Callers
nothing calls this directly
Tested by
no test coverage detected