(self, query: str, values: list)
| 186 | |
| 187 | @translate_exceptions |
| 188 | async def execute_insert(self, query: str, values: list) -> int: |
| 189 | async with self.acquire_connection() as connection: |
| 190 | self.log.debug("%s: %s", query, values) |
| 191 | async with connection.cursor() as cursor: |
| 192 | await cursor.execute(query, values) |
| 193 | return cursor.lastrowid # return auto-generated id |
| 194 | |
| 195 | @translate_exceptions |
| 196 | async def execute_many(self, query: str, values: list) -> None: |
nothing calls this directly
no test coverage detected