Help for this page

Select Code to Download


  1. or download this
    sub _set_connection {
        my( $self, %options ) = @_;
    ...
        $url ||= sprintf 'http://%s:%s', $self->{host}, $self->{port};
        return MongoDB->connect($url);
    }