(self, sql: str)
| 636 | |
| 637 | class _RaceCon: |
| 638 | def execute(self, sql: str) -> object: # noqa: PLR6301 |
| 639 | if sql.lstrip().upper().startswith("SELECT") and not writer._con.in_transaction: |
| 640 | writer.acquire_write() # writer slips in between the reader's BEGIN and SELECT |
| 641 | return real_con.execute(sql) |
| 642 | |
| 643 | def __getattr__(self, name: str) -> object: |
| 644 | return getattr(real_con, name) |
no test coverage detected