Florian Ragwitz > MongoDB-0.01 > MongoDB::Cursor

Download:
MongoDB-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source   Latest Release: MongoDB-v0.707.1.0

NAME ^

MongoDB::Cursor - A cursor/iterator for Mongo query results

VERSION ^

version 0.01

SYNOPSIS ^

    while (my $object = $cursor->next) {
        ...
    }

    my @objects = $cursor->all;

METHODS ^

next

    while (my $object = $cursor->next) {
        ...
    }

Returns the next object in the cursor. Will automatically fetch more data from the server if necessary. Returns undef if no more data is available.

all

    my @objects = $cursor->all;

Returns a list of all objects in the result.

AUTHOR ^

  Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2009 by 10Gen.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004
syntax highlighting: