Skip to content

RenameTableEvent, plus write connection track_event() mechanism#2682

Merged
simonw merged 6 commits into
mainfrom
rename-table-event
Mar 30, 2026
Merged

RenameTableEvent, plus write connection track_event() mechanism#2682
simonw merged 6 commits into
mainfrom
rename-table-event

Conversation

@simonw
Copy link
Copy Markdown
Owner

@simonw simonw commented Mar 30, 2026

simonw and others added 6 commits March 30, 2026 10:39
Allows write functions and write_wrapper generators to queue events
during a write operation that are dispatched after successful commit.
The fn or wrapper can optionally accept a `track_event` parameter
(detected via call_with_supported_arguments). Events are discarded
if the write raises an exception.

Does not yet handle the block=False (non-blocking) case - events
queued during non-blocking writes are currently silently discarded.

Refs #2681

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Spawns a background asyncio task that awaits the write thread's reply
queue and dispatches pending events after a successful non-blocking
write. Events are still discarded if the write raises an exception.

Refs #2681

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@simonw simonw changed the title Write connection track_event() mechanism and new RenameTableEvent event RenameTableEvent, plus write connection track_event() mechanism Mar 30, 2026
@simonw simonw marked this pull request as ready for review March 30, 2026 18:20
@simonw simonw merged commit 312f41b into main Mar 30, 2026
38 checks passed
@simonw simonw deleted the rename-table-event branch March 30, 2026 18:20
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.60%. Comparing base (4fcf474) to head (65bbbf3).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2682      +/-   ##
==========================================
+ Coverage   90.57%   90.60%   +0.02%     
==========================================
  Files          55       55              
  Lines        8450     8487      +37     
==========================================
+ Hits         7654     7690      +36     
- Misses        796      797       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

simonw added a commit that referenced this pull request Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant