Commits

Anonymous committed 8b44754

synchronous insert helper

  • Participants
  • Parent commits 75c6801

Comments (0)

Files changed (1)

File src/emongo.erl

          find_all_seq/3, fold_all_seq/5,
          insert_seq/3, update_seq/5, delete_seq/3]).
 
--export([update_sync/5, delete_sync/3]).
+-export([update_sync/5, delete_sync/3, insert_sync/3]).
 
 -deprecated([update_sync/5, delete_sync/3]).
 
 insert_seq(Collection, Document, Next) ->
     insert_seq(Collection, [Document], Next).
 
+
+insert_sync(PoolId, Collection, Documents) ->
+    sequence(PoolId, insert_seq(Collection, Documents, synchronous())).
+
 %%------------------------------------------------------------------------------
 %% update
 %%------------------------------------------------------------------------------