Mongo
PHP Manual

Mongo::pairConnect

(PECL mongo >=0.9.0)

Mongo::pairConnectConnects to paired database server

Описание

public boolean Mongo::pairConnect ( void )

To successfully create a paired connection, $this->server must be a string of the form "server1,server2".

Список параметров

This function has no parameters.

Возвращаемые значения

If the connection was successful.

Errors/Exceptions

Throws MongoConnectionException if it fails to connect to the databases.


Mongo
PHP Manual