Packages

object MongoClient

Provides functions for connecting to a MongoDB server or cluster.

There are three main ways to connect to a MongoDB cluster:

The first two come with a xyzWith variant that lets you pass in options at connection time.

Source
MongoClient.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class DatabaseInfo (name: String, sizeOnDisk: Double, empty: Boolean) extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def fromAddress(cluster: List[ServerAddress], creds: MongoCredential*): MongoClient

    Connects to the specified MongoDB cluster, using the specified credentials.

  10. def fromAddressWith(cluster: List[ServerAddress], creds: MongoCredential*)(options: MongoClientOptions): MongoClient

    Connects to the specified MongoDB cluster, using the specified credentials and options.

    Connects to the specified MongoDB cluster, using the specified credentials and options.

    Specify an empty list for anonymous login.

  11. def fromUri(uri: String): Option[MongoClient]

    Connects to the specified MongoDB cluster.

  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def local(creds: MongoCredential*): MongoClient

    Connects to the local MongoDB server, using the specified credentials.

  16. def localWith(creds: MongoCredential*)(options: MongoClientOptions): MongoClient

    Connects to the local MongoDB server, using the specified credentials and options.

    Connects to the local MongoDB server, using the specified credentials and options.

    Specify an empty list for anonymous login.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. object DatabaseInfo extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped