Platforms to show: All Mac Windows Linux Cross-Platform

Back to MongoURIMBS class.

MongoURIMBS.Constructor(URI as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Parses a string containing a MongoDB style URI connection string.
Example

dim URL as string = "mongodb://localhost/"
dim URI as new MongoURIMBS(URI)

MessageBox URI.URI

Raises a MongoExceptionMBS in case of a parsing error.
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"

MongoURIMBS.Copy as MongoURIMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MongoDB MBS MongoDB Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Copies the entire contents of a URI.

The items on this page are in the following plugins: MBS MongoDB Plugin.


The biggest plugin in space...