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 database: MongoDatabase
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 : ClassTag](name: String, codecRegistry: CodecRegistry): F[MongoCollection[F, T]]
def listCollectionNames: F[Iterable[String]]
def listCollectionNames(session: ClientSession[F]): F[Iterable[String]]
def listCollections[T : ClassTag]: F[Iterable[T]]
def listCollections[T : ClassTag](session: ClientSession[F]): F[Iterable[T]]
def name: String
def readConcern: ReadConcern
def readPreference: ReadPreference
def runCommandWithCodec[T : MongoCodecProvider](session: ClientSession[F], command: Bson, readPreference: ReadPreference): 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 : MongoCodecProvider](command: Bson, readPreference: ReadPreference): F[T]
def witReadConcern(readConcern: ReadConcern): 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 : ClassTag](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 : MongoCodecProvider](session: ClientSession[F]): 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 : MongoCodecProvider](session: ClientSession[F], command: Bson): F[T]
def runCommandWithCodec[T : MongoCodecProvider](command: Bson): F[T]
def withAddedCodec[T : ClassTag](implicit evidence$1: ClassTag[T], cp: MongoCodecProvider[T]): MongoDatabase[F]