MongoDB::Database - A Mongo Database
version 0.01
The name of the database.
my @collections = $database->collection_names;
Returns the list of collections in this database.
my $collection = $database->get_collection('foo');
Returns a MongoDB::Collection for the collection called $name within this database.
MongoDB::Collection
$name
$database->drop;
Deletes the database.
my $result = $database->run_command({ some_command => 1 });
Runs a command for this database on the mongo server. Throws an exception with an error message if the command fails. Returns the result of the command on success.
Florian Ragwitz <rafl@debian.org>
This software is Copyright (c) 2009 by 10Gen.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install MongoDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MongoDB
CPAN shell
perl -MCPAN -e shell install MongoDB
For more information on module installation, please visit the detailed CPAN module installation guide.