vertx-mongo-client icon indicating copy to clipboard operation
vertx-mongo-client copied to clipboard

MongoClient::renameCollection(....)

Open M4ikT opened this issue 3 years ago • 0 comments

Read me

Describe the feature

io.vertx.ext.mongo.MongoClient should implement

Publisher<Void> renameCollection(MongoNamespace newCollectionNamespace); Publisher<Void> renameCollection(MongoNamespace newCollectionNamespace, RenameCollectionOptions options); Publisher<Void> renameCollection(ClientSession clientSession, MongoNamespace newCollectionNamespace); Publisher<Void> renameCollection(ClientSession clientSession, MongoNamespace newCollectionNamespace, RenameCollectionOptions options);

which is already implemented in com.mongodb.reactivestreams.client.MongoCollection.

Use cases

  • rename a collection to replace data after bulkWrite etc commands

Contribution

I'm able to implement this feature.

M4ikT avatar Apr 27 '22 11:04 M4ikT