abstract class MongoDatabase[F[_]] extends AnyRef
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- MongoDatabase
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new MongoDatabase()
Abstract Value Members
- abstract def codecs: CodecRegistry
- abstract def createCollection(name: String, options: CreateCollectionOptions): F[Unit]
- abstract def drop(clientSession: ClientSession[F]): F[Unit]
Drops this database.
Drops this database.
- clientSession
the client session with which to associate this operation https://docs.mongodb.com/manual/reference/method/db.dropDatabase/
- Since
1.7
- abstract def drop: F[Unit]
Drops this database.
Drops this database. https://docs.mongodb.com/manual/reference/method/db.dropDatabase/
- abstract def getCollection[T](name: String, codecRegistry: CodecRegistry)(implicit arg0: ClassTag[T]): F[MongoCollection[F, T]]
- abstract def listCollectionNames(session: ClientSession[F]): F[Iterable[String]]
- abstract def listCollectionNames: F[Iterable[String]]
- abstract def listCollections[T](session: ClientSession[F])(implicit arg0: ClassTag[T]): F[Iterable[T]]
- abstract def listCollections[T](implicit arg0: ClassTag[T]): F[Iterable[T]]
- abstract def name: String
- abstract def readConcern: ReadConcern
- abstract def readPreference: ReadPreference
- abstract def runCommandWithCodec[T](command: Bson, readPreference: ReadPreference)(implicit arg0: ClassTag[T], arg1: MongoCodecProvider[T]): F[T]
- abstract def runCommandWithCodec[T](session: ClientSession[F], command: Bson, readPreference: ReadPreference)(implicit arg0: ClassTag[T], arg1: MongoCodecProvider[T]): F[T]
Executes command in the context of the current database.
Executes command in the context of the current database.
- session
the client session with which to associate this operation
- command
the command to be run
- readPreference
the ReadPreference to be used when executing the command
- Since
1.7
- abstract def witReadConcern(readConcern: ReadConcern): MongoDatabase[F]
- abstract def withAddedCodec(codecRegistry: CodecRegistry): MongoDatabase[F]
- abstract def withReadPreference(readPreference: ReadPreference): MongoDatabase[F]
- abstract def withWriteConcern(writeConcert: WriteConcern): MongoDatabase[F]
- abstract def writeConcern: WriteConcern
Concrete 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])
- def createCollection(name: String): F[Unit]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCollection(name: String): F[MongoCollection[F, Document]]
- def getCollectionWithCodec[T](name: String)(implicit arg0: ClassTag[T], cp: MongoCodecProvider[T]): F[MongoCollection[F, T]]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listCollections(session: ClientSession[F]): F[Iterable[Document]]
- def listCollections: F[Iterable[Document]]
- def listCollectionsWithCodec[T](session: ClientSession[F])(implicit arg0: ClassTag[T], arg1: MongoCodecProvider[T]): F[Iterable[T]]
- def listCollectionsWithCodec[T](implicit arg0: ClassTag[T], arg1: MongoCodecProvider[T]): F[Iterable[T]]
- 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 runCommand(session: ClientSession[F], command: Bson, readPreference: ReadPreference): F[Document]
- def runCommand(session: ClientSession[F], command: Bson): F[Document]
- def runCommand(command: Bson): F[Document]
- def runCommand(command: Bson, readPreference: ReadPreference): F[Document]
- def runCommandWithCodec[T](command: Bson)(implicit arg0: ClassTag[T], arg1: MongoCodecProvider[T]): F[T]
- def runCommandWithCodec[T](session: ClientSession[F], command: Bson)(implicit arg0: ClassTag[T], arg1: MongoCodecProvider[T]): F[T]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withAddedCodec[T](implicit arg0: ClassTag[T], cp: MongoCodecProvider[T]): MongoDatabase[F]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated