Creates a new database connection object
public __construct ( string $server = 'mongodb://localhost:27017', array $options = ['connect' => true] ) | ||
$server | string | - The server name. server should have the form: mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db |
$options | array | - An array of options for the connection. |