MongoDB::Connection - A connection to a Mongo server
Hostname to connect to.
Port to use when connecting.
Boolean indicating whether or not to reconnect if the connection is interrupted.
Boolean indication whether or not to connect automatically on object construction.
Connects to the mongo server. Called automatically on object construction if
auto_connect is true.
my @dbs = $connection->database_names;
Lists all databases on the mongo server.
my $database = $connection->get_database('foo');
MongoDB::Database instance for database with the given
$connection->authenticate('foo', 'username', 'secret');
Attempts to authenticate for use of the
$dbname database with
$password. Passwords are expected to be cleartext and will be automatically hashed before sending over the wire, unless
$is_digest is true, which will assume you already did the hashing on yourself.
Florian Ragwitz <email@example.com>
This software is Copyright (c) 2009 by 10Gen.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004