feat: standardize plugin system patterns#258
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (20)
📝 WalkthroughWalkthroughThis PR standardizes database driver plugins by adding result truncation tracking via Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
6ff40c1 to
6c43c3e
Compare
Summary
errorDescriptiontoPluginDriverErrorprotocol, removed 10 per-driver implementations, simplifiedPluginDriverAdaptererror handling from 9 lines to 1withCheckedThrowingContinuationto sharedpluginDispatchAsynchelper with cancellation supportisTruncatedtoPluginQueryResult, propagated through all 8 drivers so the UI knows when results are capped at 100K rowsString(localized:)to static error messages in MySQL, PostgreSQL, ClickHouse, Oracle, Redis, MongoDB driversNet: -41 lines across 21 files. All 8 driver plugins now use consistent patterns for error formatting, async bridging, and result truncation.
Test plan
xcodebuild buildsucceedsxcodebuild testpassesSummary by CodeRabbit
Bug Fixes
Improvements