Add MongoDB workbench support - #155
Open
amalshaji wants to merge 25 commits into
Open
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
dbcooper | 7e231d7 | Commit Preview URL Branch Preview URL |
Aug 05 2026, 01:18 PM |
amalshaji
force-pushed
the
codex/mongodb-support
branch
from
July 28, 2026 10:25
7cf1166 to
60d2aaf
Compare
Loading saved or historical queries now restores editor state without re-running and duplicating history. Newly created collections are selected immediately so the action has an observable result.
Generate validated read-only MongoDB query specifications as reviewable drafts, never automatic executions. The workspace now uses compact segmented navigation and app-native collection dialogs.
Use the shared JSON editor theme across queries, validators, and documents. Replace native selects and confirms with compact design-system controls and align index options and actions.
Bound fill-height document and validator editors to the available flex space so CodeMirror owns vertical overflow instead of being clipped by the inspector.
amalshaji
marked this pull request as ready for review
August 5, 2026 08:35
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.
Summary
Why
MongoDB is document-oriented and does not fit DBcooper's relational
DatabaseDriverand schema workspace. This introduces an explicit document-database path while keeping SQL, Redis, and file-database behavior isolated.The workbench follows a compact document-tool layout: database catalog, bounded query composer, results list, and document inspector. Mongo green is reserved for selection and AI-draft accents rather than replacing the existing application palette.
Migration note
Migration 010 removes the Docker engine allowlist. SQLite cannot drop an existing
CHECKconstraint in place, so the migration safely rebuildsdocker_connectionsand copies its rows. Rewriting migration 009 would invalidate SQLx checksums for users who already ran a canary containing it.Validation
On the current head:
bun run check— 170 tests, TypeScript checks, ESLint, and production buildcargo fmt --checkcargo test --lib -- --test-threads=1— 127 passed, 1 intentionally ignored/private/tmp/dbcooper-mongodb-support/src-taurimongo:7.0container started on OrbStack Linux 7.0.11 and passed DBcooper's exactmongoshreadiness probeThe current all-target Rust run passed unit and app-data tests, then reached the ClickHouse integration target without a local ClickHouse service. CI supplies the Docker-backed PostgreSQL, Redis, and ClickHouse services.