class MongoDb extends MongoDbImpl
- Source
- MongoDb.scala
- Alphabetic
- By Inheritance
- MongoDb
- MongoDbImpl
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MongoDb(client: MongoClient, currentDb: MongoDatabase)
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
- 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: String, collection: String): Task[Unit]
Creates a new collection in the specified database.
Creates a new collection in the specified database.
- collection
the name for the new collection to create
- returns
a unit that signals on completion.
- def createCollection(collectionName: String): Task[Unit]
Creates a new collection with the given name.
Creates a new collection with the given name.
- collectionName
the name for the new collection to create
- returns
a unit that signals on completion.
- def createCollection(db: MongoDatabase, collectionName: String): Task[Unit]
- Attributes
- protected[this]
- Definition Classes
- MongoDbImpl
- def dropCollection(db: String, collection: String): Task[Unit]
Drops a collection from the specified database.
Drops a collection from the specified database.
- collection
the name of the collection to drop
- returns
a unit that signals on completion
- def dropCollection(collection: String): Task[Unit]
Drops a collection from the current database.
Drops a collection from the current database.
- collection
the name of the collection to drop
- returns
a unit that signals on completion
- def dropCollection(db: MongoDatabase, collectionName: String): Task[Unit]
- Attributes
- protected[this]
- Definition Classes
- MongoDbImpl
- def dropDatabase(db: String): Task[Unit]
Drops the specified database.
Drops the specified database.
- returns
a unit that signals on completion.
- def dropDatabase: Task[Unit]
Drops the current database.
Drops the current database.
- returns
a unit that signals on completion.
- def dropDatabase(db: MongoDatabase): Task[Unit]
- Attributes
- protected[this]
- Definition Classes
- MongoDbImpl
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def existsCollection(db: String, collection: String): Task[Boolean]
Check whether a collection exists or not.
Check whether a collection exists or not.
- collection
the name of the collection
- returns
a boolean Task indicating whether the collection exists or not.
- def existsCollection(collection: String): Task[Boolean]
Check whether a collection in the current db exists or not.
Check whether a collection in the current db exists or not.
- collection
the name of the collection
- returns
a boolean Task indicating whether the collection exists or not.
- def existsCollection(db: MongoDatabase, collectionName: String): Task[Boolean]
- Attributes
- protected[this]
- Definition Classes
- MongoDbImpl
- def existsDatabase(dbName: String): Task[Boolean]
Checks whether a database exists or not.
Checks whether a database exists or not.
- dbName
the name of the database
- returns
a boolean Task indicating whether the database exists or not.
- def existsDatabase(client: MongoClient, dbName: String): Task[Boolean]
- Attributes
- protected[this]
- Definition Classes
- 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 getClusterDescription: Task[ClusterDescription]
Gets the current cluster description.
Gets the current cluster description. The method may return a ClusterDescription whose clusterType is unknown and whose com.mongodb.connection.ServerDescriptions are all in the connecting state.
If the application requires notifications after the driver has connected to a member of the cluster, it should register a ClusterListener via the ClusterSettings in com.mongodb.MongoClientSettings. the current cluster description
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listCollections(db: String): Observable[String]
Lists all the collections the given database.
Lists all the collections the given database.
- returns
an Observable that emits the names of all the existing collections.
- def listCollections: Observable[String]
Lists all the collections the current database.
Lists all the collections the current database.
- returns
an Observable that emits the names of all the existing collections.
- def listCollections(db: MongoDatabase): Observable[String]
- Attributes
- protected[this]
- Definition Classes
- MongoDbImpl
- def listDatabases: Observable[String]
Get the list of the all database names.
Get the list of the all database names.
- returns
an Observable that emits the names of all the existing databases.
- def listDatabases(client: MongoClient): Observable[String]
- Attributes
- protected[this]
- Definition Classes
- 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(oldCollection: String, newCollection: String): Task[Boolean]
Rename the collection with oldCollectionName to the newCollectionName.
Rename the collection with oldCollectionName to the newCollectionName.
- oldCollection
the current (old) name of the collection
- newCollection
the name (new) which the collection will be renamed to
- returns
a boolean Task indicating whether the collection was successfully renamed or not.
- def renameCollection(db: MongoDatabase, oldCollectionName: String, newCollectionName: String): Task[Boolean]
- Attributes
- protected[this]
- Definition Classes
- 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()