Upgrading MongoDB C++ Driver to mongocxx-3.1.2 -


how upgrade mongodb c++ driver legacy mongocxx-3.1.2 easly? classes in mongocxx-3.1.2 following?

mongo::bsonelement; mongo::bsonobj; mongo::bsonobjbuilder; 

thanks in advance..

there no "upgrade" - libraries offer entirely different apis. need re-write parts of application interact bson or mongodb in order use (you need modern c++ toolchain).

to understand analogues types asking about, recommend reading https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/working-with-bson/

complete documentation current stable version of library (3.1.2) available here: https://mongodb.github.io/mongo-cxx-driver/api/current/

to elaborate bit on mappings of types requested:

  • the closest analogue mongo::bsonelement bsoncxx::document::element
  • the closest analogue mongo::bsonobj bsoncxx::document::value , associated view type bsoncxx::document::view.
  • the closest analogue mongo::bsonobjbuilder bsoncxx::builder::basic::document.

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -