Is it possible to use MongoDB as an embedded database?
Asked Answered
J

4

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

Jackquelinejackrabbit answered 5/5, 2011 at 17:46 Comment(1)
I just came across UnQLite , but I know nothing about using it, yet.Overcompensation
K
8

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

Kibitka answered 5/5, 2011 at 17:58 Comment(1)
The truth is tough:-) Do you possibly know any other embedded nosql database?Jackquelinejackrabbit
C
6

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.

Caution answered 23/12, 2012 at 7:15 Comment(0)
S
2

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

Solent answered 14/9, 2011 at 23:18 Comment(0)
H
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.

Halter answered 29/10, 2012 at 9:36 Comment(1)
Seems others a trying to get mongo embedded as well, but I would like to have it in C++, Thanks anywayJackquelinejackrabbit

© 2022 - 2024 — McMap. All rights reserved.