Skip to content

Commit

Permalink
Add mnesia(copy)
Browse files Browse the repository at this point in the history
  • Loading branch information
qomputer committed Jun 18, 2018
1 parent b944c9f commit 236f0eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rebar.config
Expand Up @@ -3,6 +3,6 @@
{deps, [
{bert, ".*", {git, "git://github.com/synrc/bert", {tag,""}}},
{active, ".*", {git, "git://github.com/synrc/active", {tag,"1.9"}}},
{kvs, ".*", {git, "git://github.com/synrc/kvs", {tag,"master"}}},
% {kvs, ".*", {git, "git://github.com/synrc/kvs", {tag,"master"}}},
{syn, ".*", {git, "git://github.com/ostinelli/syn", {tag,"1.5.0"}}}
]}.
2 changes: 1 addition & 1 deletion src/bpe.app.src
Expand Up @@ -3,7 +3,7 @@
{description, "SYNRC BPE Business Process Engine"},
{vsn, "1.0"},
{registered, []},
{applications, [kernel,stdlib,kvs,syn]},
{applications, [kernel,stdlib,kvs,syn,ekka]},
{mod, { bpe_app, []}},
{env, []}
]}.
3 changes: 3 additions & 0 deletions src/bpe_metainfo.erl
Expand Up @@ -17,3 +17,6 @@ metainfo() ->
% #table{name = endEvent, fields=record_info(fields, endEvent)}
]}.

mnesia(copy)->
#schema{tables =Tables}=metainfo(),
[ekka_mnesia:copy_table(Tab,disc_copies) || Tab <- Tables].

0 comments on commit 236f0eb

Please sign in to comment.