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

30 views
Skip to first unread message

yas...@gmail.com

unread,
Jan 22, 2013, 7:36:27 AM1/22/13
to erlang-q...@erlang.org

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

 

 

 

Serge Aleynikov

unread,
Jan 22, 2013, 9:16:40 AM1/22/13
to yas...@gmail.com, Erlang Questions
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
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Reply all
Reply to author
Forward
0 new messages