[erlang-questions] Accessing Mnesia from C++ on Unix

Serge Aleynikov <>
Tue Jan 22 15:16:40 CET 2013


There's no standard mnesia API designed specifically for C++/C.  A C++
application running in a separate process from an Erlang node running
mnesia database can use:

1. A helper application such as webnesia to expose mnesia data through
REST: https://github.com/tarpipe/webnesia.
2. Distributed Erlang transport to call mnesia functions
(http://www.erlang.org/doc/man/mnesia.html) over RPC using a C++ library
such as https://github.com/saleyn/eixx.
3. Your own marshaling protocol over TCP that would serve mnesia data
out-of-process.

Serge

On 1/22/2013 7:36 AM,  wrote:
> Hi,
> 
> What is the best and standard way for accessing an Mnesia DB from Unix
> in a C++ application? I am aware of 2 options:
> 
> REST API of Mnesia: What is the best C++/C library to use for this?
> 
> Mnesia Sessions API: This seems to be deprecated.
> 
>  
> 
> Thanks,
> 
> Yash
> 
>  
> 
>  
> 
>  
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list