Skip to content

Commit

Permalink
Add dump/1 to mongo adapter to help pass tests.
Browse files Browse the repository at this point in the history
More tests to make pass.
  • Loading branch information
choptastic committed Jun 25, 2014
1 parent bdff76e commit e14abc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/db_adapters/boss_db_adapter_mongodb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-export([start/1, stop/0, init/1, terminate/1, find/2, find/7]).
-export([count/3, counter/2, incr/2, incr/3, delete/2, save_record/2]).
-export([execute/2, transaction/2]).
-export([push/2, pop/2]).
-export([push/2, pop/2, dump/1]).
-export([table_exists/2, get_migrations_table/1, migration_done/3]).

-define(LOG(Name, Value), lager:debug("DEBUG: ~s: ~p~n", [Name, Value])).
Expand Down Expand Up @@ -271,10 +271,11 @@ execute_save_record(Conn, Record, Collection) ->
mongo:insert(Collection, Doc)
end).

% These 2 functions are not part of the behaviour but are required for
% These 3 functions are not part of the behaviour but are required for
% tests to pass
push(_Conn, _Depth) -> ok.
pop(_Conn, _Depth) -> ok.
dump(_Conn) -> ok.

% This is needed to support boss_db:migrate
table_exists(_Conn, _TableName) -> ok.
Expand Down

0 comments on commit e14abc7

Please sign in to comment.