MCPcopy Create free account
hub / github.com/tox-dev/filelock / execute

Method execute

tests/test_read_write_unit.py:638–641  ·  view source on GitHub ↗
(self, sql: str)

Source from the content-addressed store, hash-verified

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)

Calls 1

acquire_writeMethod · 0.45

Tested by

no test coverage detected