As the title says I like to embedd the MongoDB server into my own C++ application. I haven't found this mode in the documentation. What I was looking for is something like SQLite or Firebird in the embedded mode. Is this also possible with MongoDB? (Without programming it myself).
Asked
Active
Viewed 4,265 times
8
-
I just came across UnQLite , but I know nothing about using it, yet. – Stephen J Apr 28 '17 at 15:28
4 Answers
8
There is no way to embed MongoDB right now - but on the wishlist of many people.
-
2The truth is tough:-) Do you possibly know any other embedded nosql database? – schoetbi May 06 '11 at 05:57
6
You should consider EJDB.
EJDB is the C library based on modified version of Tokyo Cabinet. JSON representation of queries and data implemented with API based on C BSON, MongoDB-like queries and overall philosophy.

Guy Korland
- 9,139
- 14
- 59
- 106
2
I like tokyo cabinet. It is flexible document storage like mongodb. It also comes with some nifty full text searching abilities and a small memory footprint.
Tokyo Cabinet: http://fallabs.com/tokyocabinet/
I've also created an objective-c wrapper (in case you wanted to embed it in an osx/ios app). https://github.com/isaact/TSDocDB

isaac
- 631
- 1
- 5
- 10
0
Though it is in java, you may want to take a look at fongo. Which is a in-memory embedded implementation of MongoDB in Java.

Uwe L. Korn
- 8,080
- 1
- 30
- 42
-
Seems others a trying to get mongo embedded as well, but I would like to have it in C++, Thanks anyway – schoetbi Nov 30 '12 at 15:34