[CXX-727] Make it possible to rename collections Created: 04/Nov/15  Updated: 11/Jan/16  Resolved: 17/Nov/15

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: 0.2.0
Fix Version/s: 3.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Karolin Varner Assignee: Matt Cotter
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

This is a pull request for the new alpha driver…wait a sec…



 Comments   
Comment by Githook User [ 17/Nov/15 ]

Author:

{u'username': u'Machyne', u'name': u'Matt Cotter', u'email': u'matt@mattwc.com'}

Message: CXX-727 add tests for collection rename

The mock test checks that we are correctly sending the user's
arguments to mongoc's collection_rename. The integration test
makes sure everything works.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/1f5803b2527254b7cec771fda065e3821bf771d3

Comment by Githook User [ 17/Nov/15 ]

Author:

{u'username': u'koraa', u'name': u'Karolin Varner', u'email': u'karo@cupdev.net'}

Message: CXX-727 Add a name setter for renaming collections

Until now we had support for getting a collection's name by
using the getter collection::name(...); this overloads this
method with an additional name setter.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/0d14cc7b6a925e64578a6821d7c56114dda11c09

Comment by Githook User [ 17/Nov/15 ]

Author:

{u'username': u'koraa', u'name': u'Karolin Varner', u'email': u'karo@cupdev.net'}

Message: CXX-727 Do not cache the collection name

Previous to this we have been caching the name of
a collection, but this is not necessary since the C api
already does the same.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/598b3d9194f5c914e0bf64c68db1a0f0e081af44

Comment by Githook User [ 17/Nov/15 ]

Author:

{u'username': u'koraa', u'name': u'Karolin Varner', u'email': u'karo@cupdev.net'}

Message: CXX-727 Remove database::rename(...)

The method was unimplemented and renaming databases is
currently not something mongodb provides for it's drivers.

See https://jira.mongodb.org/browse/SERVER-701
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/befb225b0c52a36b946f85232fb8de548855d8d4

Comment by Matt Cotter [ 04/Nov/15 ]

https://github.com/mongodb/mongo-cxx-driver/pull/367

Generated at Wed Feb 07 22:00:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.