From e14abc7d33a3060f1797033296ee353fc6b74d68 Mon Sep 17 00:00:00 2001 From: Jesse Gumm Date: Wed, 25 Jun 2014 11:24:21 -0500 Subject: [PATCH] Add dump/1 to mongo adapter to help pass tests. More tests to make pass. --- src/db_adapters/boss_db_adapter_mongodb.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/db_adapters/boss_db_adapter_mongodb.erl b/src/db_adapters/boss_db_adapter_mongodb.erl index a122065b..1e878558 100644 --- a/src/db_adapters/boss_db_adapter_mongodb.erl +++ b/src/db_adapters/boss_db_adapter_mongodb.erl @@ -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])). @@ -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.