32384f76fe
Provide mnesia_rocksdb:backup/1,2 and restore/1,2 that pair a Mnesia checkpoint (schema and non-RocksDB tables) with RocksDB backup engines for open admin and standalone databases. Restore stages RocksDB into a sibling directory and redirects mountpoints while Mnesia fallback purges the real directory, then relocates the data and optionally restarts. Raise the minimum OTP version to 27.
51 lines
1.3 KiB
Erlang
51 lines
1.3 KiB
Erlang
%% -*- erlang -*-
|
|
{minimum_otp_vsn, "27.0"}.
|
|
|
|
{deps,
|
|
[
|
|
{sext, "1.8.0"},
|
|
{rocksdb, {git, "https://github.com/emqx/erlang-rocksdb.git", {ref,"d695c6e"}}},
|
|
{hut, "1.4.0"}
|
|
]}.
|
|
|
|
{xref_checks, [
|
|
undefined_function_calls,
|
|
locals_not_used,
|
|
deprecated_function_calls
|
|
]}.
|
|
|
|
{dialyzer, [{plt_apps, all_deps},
|
|
{base_plt_apps, [erts, kernel, stdlib, mnesia ]}
|
|
]}.
|
|
|
|
{profiles,
|
|
[
|
|
{test,
|
|
[
|
|
{deps, [ {proper, "1.4.0"}
|
|
, {meck, "0.9.2"}
|
|
, {trace_runner, {git, "https://github.com/uwiger/trace_runner.git",
|
|
{ref, "2e56677"}}}
|
|
]},
|
|
{dialyzer, [{plt_apps, all_deps},
|
|
{base_plt_apps, [erts, kernel, stdlib, mnesia, runtime_tools, eunit,
|
|
proper, trace_runner, common_test]}]}
|
|
]},
|
|
{edown,
|
|
%% Use as `rebar3 as edown do edoc`
|
|
[
|
|
{deps, [{edown, "0.8.4"}]},
|
|
{edoc_opts,
|
|
[{doclet, edown_doclet},
|
|
{app_default, "http://www.erlang.org/doc/man"},
|
|
{doc_path, []},
|
|
{top_level_readme,
|
|
{"./README.md", "https://github.com/aeternity/mnesia_rocksdb"}}]}]}
|
|
]}.
|
|
|
|
{ex_doc, [
|
|
{extras, [<<"README.md">>, <<"LICENSE">>]},
|
|
{main, <<"readme">>},
|
|
{source_url, <<"https://github.com/aeternity/mnesia_rocksdb">>}
|
|
]}.
|