Module mc_cursor

Behaviours: gen_server.

Function Index

next/1
next/2
next_batch/1
next_batch/2
rest/1
rest/2
take/2
take/3
foldl/4
foldl/5
map/3
close/1
start_link/5

Function Details

next/1

next(Cursor::pid()) -> error | {bson:document()}

next/2

next(Cursor::pid(), Timeout::timeout()) -> error | {} | {bson:document()}

next_batch/1

next_batch(Cursor::pid()) -> error | {bson:document()}

next_batch/2

next_batch(Cursor::pid(), Timeout::timeout()) -> error | {} | {bson:document()}

rest/1

rest(Cursor::pid()) -> [bson:document()] | error

rest/2

rest(Cursor::pid(), Timeout::timeout()) -> [bson:document()] | error

take/2

take(Cursor::pid(), Limit::non_neg_integer()) -> [bson:document()] | error

take/3

take(Cursor::pid(), Limit::non_neg_integer(), Timeout::timeout()) -> [bson:document()] | error

foldl/4

foldl(Fun::fun((bson:document(), term()) -> term()), Acc::term(), Cursor::pid(), Max::non_neg_integer() | infinity) -> term()

foldl/5

foldl(Fun::fun((bson:document(), term()) -> term()), Acc::term(), Cursor::pid(), Max::non_neg_integer() | infinity, Timeout::timeout()) -> term()

map/3

map(Fun::fun((bson:document()) -> term()), Cursor::pid(), Max::non_neg_integer()) -> [term()]

close/1

close(Cursor::pid()) -> ok

start_link/5

start_link(Connection, Collection, Cursor, BatchSize, Batch) -> any()


Generated by EDoc