NAME

MongoDBx::Tiny::Cursor - wrapper class of MongoDB::Cursor

SUBROUTINES/METHODS

new

$cursor = MongoDBx::Tiny::Cursor->new(
    tiny => $tiny, c_name => $c_name,cursor => $cursor
);

all

@list = $cursor->all;

array

@list = $cursor->array;
$list = $cursor->array;

next

# get next object 
$object = $cursor->next;

first

[EXPERIMENTAL]

$first_object = $cursor->first; # just call next..

AUTHOR

Naoto ISHIKAWA, <toona at seesaa.co.jp>

LICENSE AND COPYRIGHT

Copyright 2013 Naoto ISHIKAWA.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.