anchor.diff:                  end),
               case Res of
                   {ok, Curs} ->
  -                    RecordArgs = 
  -                        lists:map(fun(Row) ->
  +                    lists:map(fun(Row) ->
                                       mongo_tuple_to_record(Type, Row)
                               end, mongo:rest(Curs));
                   {failure, Reason} -> {error, Reason};
  
positive.code: execute({WriteMode, ReadMode, Connection, Database}, Fun) ->
      mongo:do(WriteMode, ReadMode, Connection, Database, Fun).
  
  
  find(Conn, Id) when is_list(Id) ->
      {Type, Collection, MongoId} = infer_type_from_id(Id),
      
  
negative.code: -export([start/0, start/1, stop/1, find/2, find/7]).
  -export([count/3, counter/2, incr/3, delete/2, save_record/2]).
  -export([push/2, pop/2, dump/1, execute/2]).
  
  -define(LOG(Name, Value), io:format("DEBUG: ~s: ~p~n", [Name, Value])).
  
  % Number of seconds between beginning of gregorian calendar and 1970
  -define(GREGORIAN_SECONDS_1970, 62167219200). 
  
  % JavaScript expression formats to query MongoDB
  -define(CONTAINS_FORMAT, "this.~s.indexOf('~s') != -1").
  -define(NOT_CONTAINS_FORMAT, "this.~s.indexOf('~s') == -1").
  
  
  start() ->
      start([]).
  