8

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).

schoetbi
  • 10,981
  • 10
  • 50
  • 71

4 Answers4

8

There is no way to embed MongoDB right now - but on the wishlist of many people.

Andreas Jung
  • 1
  • 19
  • 73
  • 119
5

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
  • 8,355
  • 13
  • 55
  • 102
1

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
  • 621
  • 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
  • 6,680
  • 1
  • 27
  • 41
  • 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