(self)
| 126 | raise e |
| 127 | |
| 128 | async def _create_database(self): |
| 129 | database = f'dbbench_{self.session_id.replace("-", "_")}' |
| 130 | conn = await self._get_conn() |
| 131 | async with await conn.cursor() as cursor: |
| 132 | await cursor.execute(f'CREATE DATABASE {database}') |
| 133 | self.database = database |
| 134 | await self._get_conn() |
| 135 | |
| 136 | async def _get_conn(self) -> mysql_connector.MySQLConnectionAbstract: |
| 137 | if self._conn: |
no test coverage detected