object MongoClient extends Serializable
- Alphabetic
- By Inheritance
- MongoClient
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val DEFAULT_CODEC_REGISTRY: CodecRegistry
- def apply(clientSettings: MongoClientSettings, mongoDriverInformation: Option[MongoDriverInformation]): MongoClient
Create a MongoClient instance from the MongoClientSettings
Create a MongoClient instance from the MongoClientSettings
- clientSettings
MongoClientSettings to use for the MongoClient
- mongoDriverInformation
any driver information to associate with the MongoClient
- returns
MongoClient
- Since
2.3
- Note
the
mongoDriverInformation
is intended for driver and library authors to associate extra driver metadata with the connections.
- def apply(clientSettings: MongoClientSettings): MongoClient
Create a MongoClient instance from the MongoClientSettings
Create a MongoClient instance from the MongoClientSettings
- clientSettings
MongoClientSettings to use for the MongoClient
- returns
MongoClient
- Since
2.3
- def apply(uri: String, mongoDriverInformation: Option[MongoDriverInformation]): MongoClient
Create a MongoClient instance from a connection string uri
Create a MongoClient instance from a connection string uri
- uri
the connection string
- mongoDriverInformation
any driver information to associate with the MongoClient
- returns
MongoClient
- Note
the
mongoDriverInformation
is intended for driver and library authors to associate extra driver metadata with the connections.
- def apply(uri: String): MongoClient
Create a MongoClient instance from a connection string uri
Create a MongoClient instance from a connection string uri
- uri
the connection string
- returns
MongoClient
- def apply(): MongoClient
Create a default MongoClient at localhost:27017
Create a default MongoClient at localhost:27017
- returns
MongoClient
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def apply(legacyClientSettings: com.mongodb.async.client.MongoClientSettings, mongoDriverInformation: Option[MongoDriverInformation]): MongoClient
Create a MongoClient instance from the MongoClientSettings
Create a MongoClient instance from the MongoClientSettings
- legacyClientSettings
MongoClientSettings to use for the MongoClient
- mongoDriverInformation
any driver information to associate with the MongoClient
- returns
MongoClient
- Annotations
- @deprecated
- Deprecated
(Since version 2.3) Update to the supported MongoClientSettings
- Note
the
mongoDriverInformation
is intended for driver and library authors to associate extra driver metadata with the connections.
- def apply(legacyClientSettings: com.mongodb.async.client.MongoClientSettings): MongoClient
Create a MongoClient instance from the MongoClientSettings
Create a MongoClient instance from the MongoClientSettings
- legacyClientSettings
MongoClientSettings to use for the MongoClient
- returns
MongoClient
- Annotations
- @deprecated
- Deprecated
(Since version 2.3) Update to the supported MongoClientSettings
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: