object MongoDb extends MongoDbImpl
- Alphabetic
- By Inheritance
- MongoDb
- MongoDbImpl
- 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
- def apply(client: MongoClient, db: MongoDatabase): MongoDb
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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
- 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
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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
- 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
- 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
- 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
- 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()
- 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
- 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()