Packages

object MongoDb extends MongoDbImpl

Object for managing the mongo databases and collections

Source
MongoDb.scala
Linear Supertypes
MongoDbImpl, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoDb
  2. MongoDbImpl
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. def apply(client: MongoClient, db: MongoDatabase): MongoDb
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def createCollection(db: MongoDatabase, collectionName: String): Task[Unit]

    Creates a new collection with the given name.

    Creates a new collection with the given name.

    db

    the database

    collectionName

    the name for the new collection to create

    returns

    a unit that signals on completion.

    Definition Classes
    MongoDb → MongoDbImpl
  8. def dropCollection(db: MongoDatabase, collectionName: String): Task[Unit]

    Drops a collection from the database.

    Drops a collection from the database.

    db

    the database

    collectionName

    the name of the collection to drop

    returns

    a unit that signals on completion

    Definition Classes
    MongoDb → MongoDbImpl
  9. def dropDatabase(db: MongoDatabase): Task[Unit]

    Drops a database.

    Drops a database.

    db

    the database to be dropped

    returns

    a unit that signals on completion.

    Definition Classes
    MongoDb → MongoDbImpl
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def existsCollection(db: MongoDatabase, collectionName: String): Task[Boolean]

    Check whether a collection exists or not.

    Check whether a collection exists or not.

    db

    the database

    collectionName

    the name of the collection

    returns

    a boolean Task indicating whether the collection exists or not.

    Definition Classes
    MongoDb → MongoDbImpl
  13. def existsDatabase(client: MongoClient, dbName: String): Task[Boolean]

    Checks whether a database exists or not.

    Checks whether a database exists or not.

    client

    the client-side representation of a MongoDB cluster.

    dbName

    the name of the database

    returns

    a boolean Task indicating whether the database exists or not.

    Definition Classes
    MongoDb → MongoDbImpl
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def listCollections(db: MongoDatabase): Observable[String]

    Lists all the collections in the given database.

    Lists all the collections in the given database.

    db

    the database

    returns

    an Observable that emits the names of all the existing collections.

    Definition Classes
    MongoDb → MongoDbImpl
  19. def listDatabases(client: MongoClient): Observable[String]

    Get a list of the database names

    Get a list of the database names

    client

    the client-side representation of a MongoDB cluster.

    returns

    an Observable that emits the names of all the existing databases.

    Definition Classes
    MongoDb → MongoDbImpl
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def renameCollection(db: MongoDatabase, oldCollectionName: String, newCollectionName: String): Task[Boolean]

    Rename the collection with oldCollectionName to the newCollectionName.

    Rename the collection with oldCollectionName to the newCollectionName.

    db

    the database

    oldCollectionName

    the current (old) name of the collection

    newCollectionName

    the name (new) which the collection will be renamed to

    returns

    a boolean Task indicating whether the collection was successfully renamed or not.

    Definition Classes
    MongoDb → MongoDbImpl
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MongoDbImpl

Inherited from AnyRef

Inherited from Any

Ungrouped