public __construct ( string $dns = 'mongodb://localhost:27017', array $options = ["connect" => true], array $driver_options = [] ) | ||
$dns | string | the data source name. mongodb://[username:password@]host1[:port1][,host2[:port2:],...] |
$options | array | server options (usable for authentication, replicasets etc) |
$driver_options | array | php specifif driver options |