(
self,
query,
args,
timeout,
return_rows=False,
record_class=None,
)
| 2010 | return result, stmt |
| 2011 | |
| 2012 | async def _executemany( |
| 2013 | self, |
| 2014 | query, |
| 2015 | args, |
| 2016 | timeout, |
| 2017 | return_rows=False, |
| 2018 | record_class=None, |
| 2019 | ): |
| 2020 | executor = lambda stmt, timeout: self._protocol.bind_execute_many( |
| 2021 | state=stmt, |
| 2022 | args=args, |
| 2023 | portal_name='', |
| 2024 | timeout=timeout, |
| 2025 | return_rows=return_rows, |
| 2026 | ) |
| 2027 | timeout = self._protocol._get_timeout(timeout) |
| 2028 | with self._stmt_exclusive_section: |
| 2029 | with self._time_and_log(query, args, timeout): |
| 2030 | result, _ = await self._do_execute( |
| 2031 | query, executor, timeout, record_class=record_class |
| 2032 | ) |
| 2033 | return result |
| 2034 | |
| 2035 | async def _do_execute( |
| 2036 | self, |
no test coverage detected