2015년 1월 7일 수요일

renaming a collection using the c++ driver

Could anyone provide an example of how I can rename a Mongodb collection using the C++ driver? 



The C++ driver does not currently offer an explicit helper method to invoke the renameCollection command. However, you can issue all database commands honored by the server (see http://docs.mongodb.org/manual/reference/command/) by using the DBClientWithCommands::runCommand method (declared in mongo/client/dbclientinterface.h).

For the specific parameters for the renameCollection command, see http://docs.mongodb.org/manual/reference/command/renameCollection/


댓글 없음:

댓글 쓰기