object MongoClient extends Serializable
- Alphabetic
- By Inheritance
- MongoClient
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- 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
-
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
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: