Permalink
Browse files

Awesome reset function

  • Loading branch information...
1 parent 373a296 commit 6b520e71b524748b33393b1ed34f162b59415d5e Daniel Widgren committed May 5, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/db.erl
View
@@ -13,6 +13,11 @@
-include("records.hrl").
+reset() ->
+ mnesia:stop(),
+ mnesia:delete_schema([node()]),
+ start().
+
start()->
io:format("~n*******************~n" ++
" Starting mnesia~n" ++

0 comments on commit 6b520e7

Please sign in to comment.