vertx-mongo-client
vertx-mongo-client copied to clipboard
MongoClient::renameCollection(....)
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
bulkWriteetc commands
Contribution
I'm able to implement this feature.