(real_connection: sqlite3.Connection, statement: str)
| 393 | execute_started: asyncio.Event, |
| 394 | ) -> None: |
| 395 | def executescript(real_connection: sqlite3.Connection, statement: str) -> sqlite3.Cursor: |
| 396 | if "PRAGMA journal_mode" in statement: |
| 397 | loop.call_soon_threadsafe(execute_started.set) |
| 398 | return real_connection.executescript(statement) |
| 399 | |
| 400 | _patch_async_connection(mocker, executescript=executescript) |
| 401 |