Packages

c

mongo4cats.database

GenericMongoDatabase

abstract class GenericMongoDatabase[F[_], S[_]] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenericMongoDatabase
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new GenericMongoDatabase()

Abstract Value Members

  1. abstract def createCollection(name: String, options: CreateCollectionOptions): F[Unit]
  2. 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

  3. abstract def drop: F[Unit]

    Drops this database.

  4. abstract def getCollection[T](name: String, codecRegistry: CodecRegistry)(implicit arg0: ClassTag[T]): F[GenericMongoCollection[F, T, S]]
  5. abstract def listCollectionNames(session: ClientSession[F]): F[Iterable[String]]
  6. abstract def listCollectionNames: F[Iterable[String]]
  7. abstract def listCollections(session: ClientSession[F]): F[Iterable[Document]]
  8. abstract def listCollections: F[Iterable[Document]]
  9. abstract def runCommand(session: ClientSession[F], command: Bson, readPreference: ReadPreference): F[Document]
  10. abstract def runCommand(command: Bson, readPreference: ReadPreference): F[Document]

    Executes command in the context of the current database.

    Executes command in the context of the current database.

    command

    the command to be run

    readPreference

    the ReadPreference to be used when executing the command

    Since

    1.7

  11. abstract def underlying: MongoDatabase
  12. abstract def withAddedCodec(codecRegistry: CodecRegistry): GenericMongoDatabase[F, S]
  13. abstract def withReadConcern(readConcern: ReadConcern): GenericMongoDatabase[F, S]
  14. abstract def withReadPreference(readPreference: ReadPreference): GenericMongoDatabase[F, S]
  15. abstract def withWriteConcern(writeConcert: WriteConcern): GenericMongoDatabase[F, S]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def codecs: CodecRegistry
  7. def createCollection(name: String): F[Unit]
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def getCollection(name: String): F[GenericMongoCollection[F, Document, S]]
  12. def getCollectionWithCodec[T](name: String)(implicit arg0: ClassTag[T], cp: MongoCodecProvider[T]): F[GenericMongoCollection[F, T, S]]
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def name: String
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. def readConcern: ReadConcern
  20. def readPreference: ReadPreference
  21. def runCommand(session: ClientSession[F], command: Bson): F[Document]
  22. def runCommand(command: Bson): F[Document]
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. def withAddedCodec[T](implicit arg0: ClassTag[T], cp: MongoCodecProvider[T]): GenericMongoDatabase[F, S]
  29. def writeConcern: WriteConcern

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped