Parses a connection URI from its string representation.
Parses a connection URI from its string representation.
import scala.concurrent.{ ExecutionContext, Future } import reactivemongo.api.{ AsyncDriver, MongoConnection } def connectFromUri(drv: AsyncDriver, uri: String)( implicit ec: ExecutionContext): Future[MongoConnection] = for { parsedUri <- MongoConnection.fromString(uri) con <- drv.connect(parsedUri) } yield con
the connection URI
(Since version 0.16.0) Internal: will be made private
(Since version 0.16.0) Internal: will be made private
(Since version 0.19.8) Use fromString