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/
댓글 없음:
댓글 쓰기