The MongoDB is down, but I can't capture the error description,the "error" argument in mongoc_collection_insert () is empty. This happened, when I use called mongoc_client_get_server_status() in codes.
While, the collectionerror can be shown without…
I added,
I$(MONGODBCDRIVER)/inlcude/libmongoc-1.0 -L$(MONGODBCDRIVER)/lib -lmongoc-1.0 to g++ and it works.
But I deleted -L$(MONGODBCDRIVER)/lib, it still works. Why?
Another question, what does lmongoc-1.0 means?
Is it to link the libmongoc-1.0.la…
As follows, the code doesn't work. I'm a newbie about MongoDB C Driver. Could anyone help me to correct my code? Thanks a lot.
I want to implement the command "{"_id":{$lt:11832668}}).sort({"_id":-1}".
bson laoquery[1];
…
is there any way I can pass a MongoDB query like db.things.find() directly to the Mongo C Driver or the Javascript driver node-mongo-native to make a query?
I am wondering the native driver is able to evaluate the query and return the result.
How…
I want to have a set of unique elements in array. If there is no document, matching my query, it should be created.
For example:
char items_1[][64] = {"cable", "wires", "optic"};
char tags_1[][64] = {"electronics", "supplies", "camera",…
MongoDB implements afindOne() collection operation.
However, looking into the collection operations available in the Mongo C driver I haven't found it there. It's a bit surprising, as other drivers implements it (such as the C++…
I'm trying to install the mongo-c-driver and mongo-cxx-driver in a Docker image, but when I run my C++ program it throws a Segmentation fault. Any ideas? Valgrind says it's mongo's fault.
I have some IOT devices and in my own computer they run just…
I'm trying to build mongo-cxx-driver on Windows; I'm following the instructions, but am getting errors:
C1189 #error: "Cannot find a valid polyfill for make_unique"
Here's what I did:
Building mongo-c-driver
I cloned mongo-c-driver using the…
I installed Mongo C++ Driver using following shell script,
#!/bin/bash
echo "Building MongoDB Core Dependency"
cd /home &&
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.17.0/mongo-c-driver-1.17.0.tar.gz &&
tar xzf…
I am trying to install mongo-c-driver there follow by http://mongoc.org/libmongoc/1.14.0/installing.html. Snce I don't have the root permission, I ran the following:
$ wget…
I'm working with the mongo-c-driver and I have a doubt with the BSON library. As you can see here, there are a lot of functions to append data to already existent bson document (We are talking about bson documents in memory, not stored in the…
For the past two days I have tried to build and test mongocxx on two different Windows 10 machines, one using VS2015 and the other using VS2017. The builds install without errors (though I had initial issues with ENABLE_EXTRA_ALIGNMENT). However,…
I'm trying to build the C driver with Kerberos support, from
mongo-c-driver-1.10.3.tar.gz. I'm on Ubuntu 16.04, 64-bit Intel, with gcc
5.4.0. I run CMake like::
$ cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
...
-- Build files have…
I have installed the Mongo C Driver on ubuntu 16.04 using the command:
sudo apt-get install libmongoc-1.0-0
When I try to compile using cmake, I get the following errors:
rolf@ubuntu2:~/src/test$ cmake .
-- The C compiler identification is GNU…
I need to use mangrove (mongo ODM lib over mongo-c-driver and mongo-cxx-driver) and included this into my project as CMake ExternalProject_Add command, with a dependency on mongo-c-driver/mongo-cxx-driver
mongocxx generates CMake configuration…