Repository navigation
Commit e431850
feat: add MongoDB driver support
Add MongoDB as the 11th supported database driver, enabling document
database operations via the existing `Connector` interface.
- New driver at `packages/drivers/src/mongodb.ts` supporting:
- Full MQL command set: find, aggregate, CRUD, indexes, collection mgmt
- Cross-database queries via per-query `database` field
- BSON type serialization (ObjectId, Decimal128, Long, UUID, Binary, Date)
- Schema introspection via document sampling with field type inference
- Connection string URI and host/port/user/password auth
- `authorizedDatabases` fallback for restricted-privilege users
- Registration in driver index, config normalizer (with `mongo`/`mongodb` aliases), and connection registry
- CI: MongoDB 7.0 service in driver-e2e workflow with health checks
- 90 E2E tests including:
- CRUD operations, aggregation pipelines, schema introspection
- Cross-database operations, index management, collection lifecycle
- Adversarial tests: deeply nested docs, special characters, heterogeneous
collections, concurrent operations, large documents, numeric edge cases
Closes #480
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 91fe351 commit e431850
8 files changed
Lines changed: 2580 additions & 3 deletions
File tree
- .github/workflows
- packages
- drivers
- src
- opencode
- src/altimate/native/connections
- test/altimate
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
158 | 169 | | |
159 | 170 | | |
160 | 171 | | |
| |||
195 | 206 | | |
196 | 207 | | |
197 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
198 | 216 | | |
199 | 217 | | |
200 | 218 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
0 commit comments