feat(mongodb): support db.collection.renameCollection()

This commit is contained in:
Loc Nguyen authored and GitHub committed 2026-09-18 14:12:39 +08:00
1 parent 392138f59a
commit 2db28fc236
16 files changed
+239 -17

No files matched your search

+2 -1
View File
@@ -502,8 +502,9 @@ test("suggests only helpers the shell parser accepts", () => {
assert.ok(methodLabels.includes("estimatedDocumentCount"));
assert.ok(methodLabels.includes("replaceOne"));
assert.ok(methodLabels.includes("bulkWrite"));
assert.ok(methodLabels.includes("renameCollection"));
// Suggesting a helper DBX cannot run just hands the user a command that fails.
for (const unsupported of ["renameCollection", "mapReduce", "watch"]) {
for (const unsupported of ["mapReduce", "watch", "validate"]) {
assert.equal(methodLabels.includes(unsupported), false, `${unsupported} is not executable`);
}
// Cursor methods are not collection methods.