Sample code that shows how to use mongodb's connection pool class
-
Install git, CMake, boost, openssl on your system, if you are using macOS this can be acomplished easily with the following command:
$ brew install cmake git openssl boost
-
Clone the repository.
-
Go to the directory mongodb_connetion_pool/libs and execute the script: ./build_dependencies.sh build mongodb C++ Driver for you.
-
Go to the directory mongodb_connectin_pool and type the following commands:
$ mkdir build $ cd build $ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
-
Finally type the command:
$ make -j 8