Skip to content

Commit

Permalink
Awesome reset function
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Widgren committed May 5, 2010
1 parent 373a296 commit 6b520e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/db.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

-include("records.hrl").

reset() ->
mnesia:stop(),
mnesia:delete_schema([node()]),
start().

start()->
io:format("~n*******************~n" ++
" Starting mnesia~n" ++
Expand Down

0 comments on commit 6b520e7

Please sign in to comment.