NAME
MojoX::MongoDB::Connection - A connection to a Mongo server
SYNOPSIS
The MojoX::MongoDB::Connection class creates a connection to the MojoX::MongoDB server.
By default, it connects to a single server running on the local machine listening on the default port:
# connects to localhost:27017
my $connection = MojoX::MongoDB::Connection->new;
It can connect to a database server running anywhere, though:
my $connection = MojoX::MongoDB::Connection->new(host => 'example.com:12345');
See the "host" section for more options for connecting to MojoX::MongoDB.
Multithreading
Cloning instances of this class is disabled in Perl 5.8.7+, so forked threads will have to create their own connections to the database.
DESCRIPTION
Please refer to the MongoDB documentation and API for more information.
AUTHORS
Kristina Chodorow <kristina@mongodb.org>
minimalist <minimalist@lavabit.com>