MCPcopy Create free account
hub / github.com/THUDM/AgentBench / _create_database

Method _create_database

src/server/tasks/dbbench/interaction.py:128–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers 1

initializeMethod · 0.95

Calls 2

_get_connMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected