apiargs-MongoDBClient-method-construct-param.yaml 1.46 KB
Newer Older
1 2 3 4
arg_name: param
name: $uri
type: string
description: |
5 6 7 8 9
  The URI of the standalone, replica set, or sharded cluster to which to
  connect. Refer to the :manual:`MongoDB connection string reference
  </reference/connection-string>` for formatting.

  Defaults to ``mongodb://127.0.0.1:27017`` if unspecified.
10 11 12 13 14 15 16 17 18
interface: phpmethod
operation: MongoDB\\Client::__construct
optional: true
position: 1
---
arg_name: param
name: $uriOptions
type: array
description: |
19 20 21
  Specifies additional URI options, such as authentication credentials or query
  string parameters. The options specified in ``$uriOptions`` take precedence
  over any analogous options present in the ``$uri`` string.
22 23
post: |
  Refer to the :php:`MongoDB\\Driver\\Manager::__construct()
24 25 26
  <mongodb-driver-manager.construct>` extension reference and :manual:`MongoDB
  connection string </reference/connection-string>` documentation for valid
  options.
27 28 29 30 31 32 33 34 35
interface: phpmethod
operation: MongoDB\\Client::__construct
optional: true
position: 2
---
arg_name: param
name: $driverOptions
type: array
description: |
36 37 38 39 40
  Specify driver-specific options, such as SSL options. In addition to any
  options supported by the :php:`extension <mongodb-driver-manager>`, the
  |php-library| allows you to specify a default :php:`type map
  <manual/en/mongodb.persistence.deserialization.php#mongodb.persistence.typemaps>`
  to apply to the cursors it creates.
41 42 43 44
interface: phpmethod
operation: MongoDB\\Client::__construct
optional: true
position: 3
45
...