public __construct ( string $server = 'mongodb://localhost:27017', array $options = ['connect' => true], array $driver_options = [] ) | ||
$server | string | The specified connection string. |
$options | array | The mongodb client options. |
$driver_options | array | The mongodb driver options when opening a connection. |