I am trying to get the libmongocxx to run on Debian Jessie 64bit after compiling it according to the :
quickstartguide
I added the path the find command returned as the location for the libmongoc-1.0.pc file the compiler is complaining missing:
$:…
I am trying to insert a UTC timestamp directly into my $push command (below). I would like to get the UTC string in the spot that currently says "UTC TIME HERE PLEASE".
update = BCON_NEW ("$push",
"{",
"folder.0.files",
…
I am trying to import a large json file into mongodb, one object at a time. a.json is a json file with a single record containing 15 key:value pairs. I am using the following code:
# include
#include
#include
int…
I've been trying unsuccessfully to install Monary on a VM running Ubuntu 14.04.1 LTS.
I've installed the Mongo C drivers and I think that's been done properly.
Apologies for the full text.
[update: enabled ssl and sasl using:
sudo apt-get install…
The underlying goal here is read json with arrays sub documents and whatever in string format {key:"value", boolkey, true, {subkey: value}, array: [x,y,z] } and not caring to undertake append_int, append_bool and all that jazz.
any way of using the…
I have documents like this using an array of subdocuments "c".
{
"_id" : 1,
"c" : [
{
"p" : {
"name" : "SimpleGroup"
}
},
{
"p" : {
"name" : "SimpleGroup2"
…
I have a memory corruption and I have no idea why. The error message is:
ERROR:
*** Error in `./server': malloc(): memory corruption (fast): 0x0000000000d743f0 ***
I'm using the mongoc library version 1.1.10. This is a snippet of my code:
int…
I was installed the MongoDB C driver on my Mac OSX Yosemite.
Using
./configure --prefix=/usr --libdir=/usr/lib64
./autogen.sh
make
sudo make install
make test
Everything is okay but when I try to compile C code with Xcode or GCC on…
I am new to MongoDB moving in from traditional SQL relational approach. I am working on a simple “Category has many Products” scenario (c#.Net). Where Category has
List
My questions are.
Question 1: On Add Product screen I have a drop…
I've created a client that needs to read and process data from the database.
I've realised that I can't test the connection I create with mongoc_client_new by just testing if that is null, because the driver uses lazy connections.
How do I test if…
I have a class to do mongodb operation using mongodb-c-driver. In the constructor, mongoc_init() is called. In deconstructor, mongoc_cleanup() is called. Then, valgrind 3.10.1 told me that some memory "still reachable". Part of the valgrind output…
I'm trying to recreate the following query using the mongo-c-driver.
db.djnNews.find({"date":"2014-02-06",$text:{$search:"GOOG"}},{score:{$meta:"textScore"}})
The text index is working fine. I can run:
query =…
I am using mongo-c-driver-1.0.2. Can I use bson_finish()?
I already added . But the error is error: ‘bson_finish’ was not declared in this scope.
Should I use bson_finish()?
I am trying to connect to mongodb with the C-API and my code seems to work fine. However, close inspection with Valgrind complains that I am doing illegal stuff.
My program accepts the parameter -h , and then translates this string to a…