NAME

Meerkat::Cursor - Wrap MongoDB::Cursor to inflate data to objects

VERSION

version 0.016

SYNOPSIS

  use Meerkat::Cursor;

DESCRIPTION

When a Meerkat::Collection method returns a query cursor, it provides this proxy for a MongoDB::Cursor. See documentation of that module for usage information.

The only difference is that the next method will return objects of the class associated with the originating Meerkat::Collection.

ATTRIBUTES

cursor (required)

A MongoDB::Cursor object

collection (required)

A Meerkat::Collection used for inflating results.

AUTHOR

David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by David Golden.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004