Installing the Mongodb-C Driver (libmongoc) and BSON library (libbson)

Step 1 : Run the Following Command: wget https://github.com/mongodb/mongo-c-driver/releases/download/1.6.3/mongo-c-driver-1.6.3.tar.gz tar xzf mongo-c-driver-1.6.3.tar.gz cd mongo-c-driver-1.6.3 ./configure –disable-automatic-init-and-cleanup –prefix=/usr/local –libdir=/usr/lib64 –with-libbson=bundled make make install Step 2 : To compile and run the program use following command: gcc -o filename filename.c $(pkg-config –libs –cflags libmongoc-1.0) Issues: 1. $(pkg-config –libs –cflags libmongoc-1.0) , this command in above command is … Read more

Installing the mongo-cxx-driver step by step

Step 1 : Download mongo-c-driver
Step 2 : Updated GCC and G++ compiler after version 5 .current version 7 in system .
Step 3 : Mongo-c-driver Version(1.15.x) version is same version and with mongo-cxx-driver (3.5.x)
Step 4 : Updated CMake 3.2 or later.
Step 5 : Install Mongo-cxx-driver

Install and Secure MongoDB 6.0 on CentOS 7

Step 1: Add the MongoDB Repository First, create a .repo file for MongoDB. This will make sure you can install the latest stable version of MongoDB. Create the repo file: Add the next content to the file: 3. Save and exit: Press Ctrl + O to write out, then press Enter. Press Ctrl + X … Read more

Coalesce in SQL

Coalesce is a SQL function used for handling NULL values. It returns the first non-null expression from the list. Each expression is evaluated for being NULL or not and the first non-null expression will be returned as the output. It takes at least two arguments in the list.