You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lazy asyncio.Lock creation + __repr__ on Connection/Cursor
- AsyncConnection used to construct _connect_lock and _op_lock
eagerly in __init__, which runs in whatever thread the caller is
in. asyncio.Lock MUST be created on the loop it will run on;
constructing one outside a loop (or on a loop that later dies)
causes RuntimeError on await. Now locks are lazy-initialized in
_ensure_locks(), called from every async entry point.
AsyncCursor's use of self._connection._op_lock is updated to go
through the new helper.
- Connection, Cursor, AsyncConnection, AsyncCursor now have
__repr__s showing address/database/state and rowcount where
applicable. No credentials leaked.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments