PARAMETERS
- Provided by: libmongoc-doc (Version: 1.26.0-1.1ubuntu2)
- Source: mongo-c-driver
- Report a bug
Parses a string containing a MongoDB style URI connection string.
A newly allocated mongoc_uri_t if successful. Otherwise NULL populating error with the error description.
WARNING:
Examples of some valid MongoDB connection strings can be seen below.
"mongodb://localhost/"
"mongodb://localhost/?replicaSet=myreplset"
"mongodb://myuser:mypass@localhost/"
"mongodb://kerberosuser%40EXAMPLE.COM@example.com/?authMechanism=GSSAPI"
"mongodb://[::1]:27017/"
"mongodb://10.0.0.1:27017,10.0.0.1:27018,[::1]:27019/?tls=true"
"mongodb://%2Ftmp%2Fmongodb-27017.sock"
"mongodb://user:pass@%2Ftmp%2Fmongodb-27017.sock"
"mongodb://localhost,[::1]/mydb?authSource=mydb"
MongoDB, Inc
2017-present, MongoDB, Inc