feat(connections): search queries across connections - #2103
Merged
datlechin merged 3 commits intoAug 13, 2026
Conversation
sophiathedev
marked this pull request as ready for review
August 13, 2026 12:25
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends the Quick Switcher's Queries scope across every currently connected TablePro window.
This is a follow-up to #2098, which added cross-connection object search.
Preview
What you get
Open Quick Switcher with
Cmd+Shift+O, then select Queries or pressCmd+4. Saved queries and up to 200 recent history entries now include their connection and database context. Search also matches saved keywords, connection names, database names, and schemas.Returnreuses a compatible query editor when possible.Option+Returnand Open in New Tab open a native window tab. The SQL is loaded for review but never executed automatically.Scope and loading
Results come only from sessions that are currently connected and have a live driver. Global favorites appear once under the connection where Quick Switcher was opened. Connection-specific favorites and history from inactive sessions are excluded.
Favorite and history updates invalidate the query cache. Connection state and load identifiers prevent an older asynchronous load from replacing newer results. The combined result list is capped at 200 entries.
Database and window routing
History entries retain the database where they were recorded. An existing editor is reused only when its database matches the result. Otherwise TablePro opens a new native window tab, preserving both the existing editor and the focus of the newly opened tab.
If a connection closes after results are loaded, opening its query is rejected with a localized error instead of routing SQL to another connection.
Tests
swift test --package-path Packages/TableProCore: 181 tests passed.xcodebuild build-for-testing, includingQuickSwitcherCrossConnectionUITests: BUILD SUCCEEDED.swiftlint lint --strict: clean.Automated XCUITest execution is unavailable locally because the machine has no provisioning profile for
com.TablePro. The UI test target compiled and includes coverage for searching query history and opening the result withOption+Return.