Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Awesome reset function

  • Loading branch information...
commit 6b520e71b524748b33393b1ed34f162b59415d5e 1 parent 373a296
Daniel Widgren authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/db.erl
View
5 src/db.erl
@@ -13,6 +13,11 @@
-include("records.hrl").
+reset() ->
+ mnesia:stop(),
+ mnesia:delete_schema([node()]),
+ start().
+
start()->
io:format("~n*******************~n" ++
" Starting mnesia~n" ++
Please sign in to comment.
Something went wrong with that request. Please try again.