Can MongoDB be used as an embedded database?

As the title says, I like to embed the MongoDB server in my own C ++ application. I did not find this mode in the documentation. What I was looking for is similar to SQLite or Firebird in native mode. Is this also possible with MongoDB? (Without programming yourself).

+8
c ++ mongodb embedded-database
source share
4 answers

It is currently not possible to embed MongoDB - but on the wish list of many people.

+8
source share

You should consider aJDB .

EJDB is a C library based on a modified version of the Tokyo cabinet. JSON representation of queries and data implemented using the API based on BSON, MongoDB queries and a general philosophy.

+5
source share

I like the Tokyo office. This is a flexible document repository such as mongodb. It also has some excellent text search capabilities and a small amount of memory.

Tokyo office: http://fallabs.com/tokyocabinet/

I also created an objective-c wrapper (in case you wanted to embed it in an osx / ios application). https://github.com/isaact/TSDocDB

+1
source share

Although this is in java, you can take a look at fongo . This is the built-in embedded implementation of MongoDB in Java.

0
source share

All Articles