Reputation: 12846
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).
Upvotes: 8
Views: 4392
Reputation: 631
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:
Tokyo Cabinet: a modern implementation of DBM - Wayback Machine (archive.org)
Tokyo Cabinet: a modern implementation of DBM - DBMx.net
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
Upvotes: 2
Reputation: 9568
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.
Upvotes: 6
Reputation: 8796
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.
Upvotes: 0
Reputation:
There is no way to embed MongoDB right now - but on the wishlist of many people.
Upvotes: 8