[erlang-questions] mnesia initialization code review

Huseyin Yilmaz yilmazhuseyin@REDACTED
Mon Jul 28 13:24:33 CEST 2014


Hello,
I tried to use mnesia couple of times before. But it always seemed too hard
to get it working right. So at last I think I got a good initialization.
Can you guys spend couple minutes to review my code.

My code is aimed to run as a single node (because multinode mnesia setup
seemed a lot of work). So only thing I do is to check if my tables are
there and if they aren't create them.

My code that initializes mnesia:
https://github.com/huseyinyilmaz/machete/blob/master/apps/machete/src/machete_mnesia.erl

Backup and restore functions:
https://github.com/huseyinyilmaz/machete/blob/master/apps/machete/src/machete_console.erl

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140728/94562aa1/attachment.htm>


More information about the erlang-questions mailing list