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).
There is no way to embed MongoDB right now - but on the wishlist of many people.
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.
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
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.
© 2022 - 2024 — McMap. All rights reserved.