The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

AnyEvent::MongoDB -- Asynchronous MongoDB client using AnyEvent

SYNOPSIS

  use AnyEvent::MongoDB;

  my $mongo = AnyEvent::MongoDB->new(
    uri => "mongodb:localhost:27017,localhost:27018",
  );

  my $db = $mongo->get_database('test');
  my $col = $db->get_collection('collection');

  $col->find({name => "foo"}, sub {
      require Data::Dumper;
      print Data::Dumper::Dumper(\@_);
  });

WARNINGS

This is considered as alpha quality software. Most of the stuff are undocumented since it's considered unstable and will likely to change.

DESCRIPTION

AnyEvent::MongoDB is a client for http://www.mongodb.org/|MongoDB using AnyEvent.

To avoid re-implementing things it uses and introducing new bugs, it uses the BSON encode and decode routines from MongoDB. See MongoDB::DataTypes for details of how the encode and decode work

SEE ALSO

MongoDB, MongoDB::DataTypes

AUTHOR

Graham Barr <gbarr@pobox.com>

COPYRIGHT

Copyright (C) 2010 by Graham Barr.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.