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

Function execute

tests/sqlite/test_async_cancellation.py:195–198  ·  view source on GitHub ↗
(real_connection: sqlite3.Connection, statement: str)

Source from the content-addressed store, hash-verified

193 loop = asyncio.get_running_loop()
194
195 def execute(real_connection: sqlite3.Connection, statement: str) -> sqlite3.Cursor:
196 if "PRAGMA journal_mode" in statement:
197 loop.call_soon_threadsafe(execute_started.set)
198 return real_connection.execute(statement)
199
200 patch_connection(mocker, execute=execute)
201 lock: Final[AsyncReadWriteLock] = AsyncReadWriteLock(lock_file, is_singleton=False)

Callers 2

switch_before_beginFunction · 0.70
execute_with_delayFunction · 0.70

Calls 2

waitMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected