You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 56acab4
Browse filesBrowse the repository at this point in the historyBrowse files
fix: address CodeRabbit findings and update docs for MongoDB driver
CodeRabbit review fixes:
- Use `...COMMON_ALIASES` spread in `MONGODB_ALIASES` for consistency
with other drivers (normalize.ts)
- Scan entire aggregate pipeline for `$limit` instead of only last
stage; also skip auto-limit for `$out`/`$merge` write pipelines
- Keep `mongodb` at `^6.0.0` (NOT upgrading to v7): v7 drops Node 16/18
support and has many breaking changes; v6.21.0 is actively maintained
and supports MongoDB server 3.6-8.0
Additional review fixes:
- Include database name in URI when building from individual config
fields for correct auth-source resolution (GLM-5)
- Add security comment about credential exposure in URI (Kimi K2.5)
Documentation updates:
- `docs/docs/drivers.md`: add MongoDB to support matrix (11 databases),
install section, auth methods, auto-discovery
- `docs/docs/configure/warehouses.md`: add MongoDB configuration section
with connection string and field-based examples, server compatibility
- `docs/docs/data-engineering/tools/warehouse-tools.md`: add MongoDB to
Docker discovery and env var detection
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: docs/docs/configure/warehouses.md
+46-1Lines changed: 46 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Warehouses
2
2
3
-
Altimate Code connects to 8 warehouse types. Configure them in `.altimate-code/connections.json` (project-local) or `~/.altimate-code/connections.json` (global).
3
+
Altimate Code connects to 9 warehouse types. Configure them in `.altimate-code/connections.json` (project-local) or `~/.altimate-code/connections.json` (global).
4
4
5
5
## Configuration
6
6
@@ -237,6 +237,51 @@ If you're already authenticated via `gcloud`, omit `credentials_path`:
237
237
|`ssl_cert`| No | Path to client certificate file |
238
238
|`ssl_key`| No | Path to client key file |
239
239
240
+
## MongoDB
241
+
242
+
```json
243
+
{
244
+
"my-mongodb": {
245
+
"type": "mongodb",
246
+
"host": "localhost",
247
+
"port": 27017,
248
+
"database": "analytics",
249
+
"user": "analyst",
250
+
"password": "{env:MONGO_PASSWORD}"
251
+
}
252
+
}
253
+
```
254
+
255
+
| Field | Required | Description |
256
+
|-------|----------|-------------|
257
+
|`connection_string`| No | Full connection string (alternative to individual fields) |
258
+
|`host`| No | Hostname (default: `127.0.0.1`) |
259
+
|`port`| No | Port (default: `27017`) |
260
+
|`database`| No | Database name |
261
+
|`user`| No | Username |
262
+
|`password`| No | Password |
263
+
|`auth_source`| No | Authentication database (default: `admin`) |
264
+
|`replica_set`| No | Replica set name |
265
+
|`tls`| No | Enable TLS (default: `false`) |
266
+
|`direct_connection`| No | Connect directly to a single host |
Copy file name to clipboardExpand all lines: docs/docs/drivers.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Overview
4
4
5
-
Altimate Code connects to 10 databases natively via TypeScript drivers. No Python dependency required. Drivers are loaded lazily, so only the driver you need is imported at runtime.
5
+
Altimate Code connects to 11 databases natively via TypeScript drivers. No Python dependency required. Drivers are loaded lazily, so only the driver you need is imported at runtime.
6
6
7
7
## Support Matrix
8
8
@@ -17,6 +17,7 @@ Altimate Code connects to 10 databases natively via TypeScript drivers. No Pytho
17
17
| Snowflake |`snowflake-sdk`| Password, Key-Pair (unencrypted + encrypted), OAuth | ✅ Live account | 37 E2E tests, key-pair with passphrase support |
18
18
| BigQuery |`@google-cloud/bigquery`| Service Account, ADC | ✅ Live account | 25 E2E tests, UNNEST/STRUCT/DATE types |
19
19
| Databricks |`@databricks/sql`| PAT, OAuth | ✅ Live account | 24 E2E tests, Unity Catalog support |
MongoDB supports server versions 3.6 through 8.0. Queries use MQL (MongoDB Query Language) via JSON, not SQL. The driver supports `find`, `aggregate`, CRUD operations, index management, and schema introspection via document sampling.
0 commit comments