MongoDatabase

abstract class MongoDatabase[F[_]]
Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def createCollection(name: String, options: CreateCollectionOptions): F[Unit]
def drop(clientSession: ClientSession[F]): F[Unit]

Drops this database.

Drops this database.

Value Params
clientSession

the client session with which to associate this operation https://docs.mongodb.com/manual/reference/method/db.dropDatabase/

Since

1.7

def getCollection[T](name: String, codecRegistry: CodecRegistry)(implicit evidence$8: ClassTag[T]): F[MongoCollection[F, T]]
def listCollectionNames: F[Iterable[String]]
def listCollectionNames(session: ClientSession[F]): F[Iterable[String]]
def listCollections[T](implicit evidence$2: ClassTag[T]): F[Iterable[T]]
def listCollections[T](session: ClientSession[F])(implicit evidence$3: ClassTag[T]): F[Iterable[T]]
def name: String
def readConcern: ReadConcern
def readPreference: ReadPreference
def runCommandWithCodec[T](session: ClientSession[F], command: Bson, readPreference: ReadPreference)(implicit evidence$10: ClassTag[T], evidence$11: MongoCodecProvider[T]): F[T]

Executes command in the context of the current database.

Executes command in the context of the current database.

Value Params
command

the command to be run

readPreference

the ReadPreference to be used when executing the command

session

the client session with which to associate this operation

Since

1.7

def runCommandWithCodec[T](command: Bson, readPreference: ReadPreference)(implicit evidence$14: ClassTag[T], evidence$15: MongoCodecProvider[T]): F[T]
def witReadConcern(readConcern: ReadConcern): MongoDatabase[F]
def withAddedCodec(codecRegistry: CodecRegistry): MongoDatabase[F]
def withReadPreference(readPreference: ReadPreference): MongoDatabase[F]
def withWriteConcern(writeConcert: WriteConcern): MongoDatabase[F]
def writeConcern: WriteConcern

Concrete methods

def createCollection(name: String): F[Unit]
def getCollection(name: String): F[MongoCollection[F, Document]]
def getCollectionWithCodec[T](name: String)(implicit evidence$9: ClassTag[T], cp: MongoCodecProvider[T]): F[MongoCollection[F, T]]
def listCollections: F[Iterable[Document]]
def listCollections(session: ClientSession[F]): F[Iterable[Document]]
def listCollectionsWithCodec[T](implicit evidence$4: ClassTag[T], evidence$5: MongoCodecProvider[T]): F[Iterable[T]]
def listCollectionsWithCodec[T](session: ClientSession[F])(implicit evidence$6: ClassTag[T], evidence$7: MongoCodecProvider[T]): F[Iterable[T]]
def runCommand(command: Bson, readPreference: ReadPreference): F[Document]
def runCommand(command: Bson): F[Document]
def runCommand(session: ClientSession[F], command: Bson): F[Document]
def runCommand(session: ClientSession[F], command: Bson, readPreference: ReadPreference): F[Document]
def runCommandWithCodec[T](session: ClientSession[F], command: Bson)(implicit evidence$12: ClassTag[T], evidence$13: MongoCodecProvider[T]): F[T]
def runCommandWithCodec[T](command: Bson)(implicit evidence$16: ClassTag[T], evidence$17: MongoCodecProvider[T]): F[T]
def withAddedCodec[T](implicit evidence$1: ClassTag[T], cp: MongoCodecProvider[T]): MongoDatabase[F]