Is it possible to use MongoDB as an embedded database?

假装没事ソ 提交于 2019-11-30 15:11:10

问题


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


回答1:


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




回答2:


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.




回答3:


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




回答4:


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.



来源:https://stackoverflow.com/questions/5902005/is-it-possible-to-use-mongodb-as-an-embedded-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!