Packages

c

io.github.mbannour

MongoZioDatabase

case class MongoZioDatabase(javaMongoDatabase: JavaMongoDatabase) extends Product with Serializable

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoZioDatabase
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MongoZioDatabase(javaMongoDatabase: JavaMongoDatabase)

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. def aggregate[C](clientSession: ClientSession, pipeline: Seq[Bson])(ct: ClassTag[C]): IO[Throwable, Iterable[C]]

    Aggregates documents according to the specified aggregation pipeline.

  5. def aggregate[C](pipeline: Seq[Bson])(ct: ClassTag[C]): IO[Throwable, Iterable[C]]

    Aggregates documents according to the specified aggregation pipeline.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. lazy val codecRegistry: CodecRegistry

    Get the codec registry for the MongoDatabase.

  9. def createCollection(clientSession: ClientSession, collectionName: String, options: CreateCollectionOptions): IO[Throwable, Completed]

    Create a new collection with the selected options

  10. def createCollection(clientSession: ClientSession, collectionName: String): IO[Throwable, Completed]

    Create a new collection with the given name.

  11. def createCollection(collectionName: String, options: CreateCollectionOptions): IO[Throwable, Completed]

    Create a new collection with the selected options

  12. def createCollection(collectionName: String): IO[Throwable, Completed]

    Create a new collection with the given name.

  13. def createView(clientSession: ClientSession, viewName: String, viewOn: String, pipeline: Seq[Bson], createViewOptions: CreateViewOptions): IO[Throwable, Completed]

    Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.

  14. def createView(clientSession: ClientSession, viewName: String, viewOn: String, pipeline: Seq[Bson]): IO[Throwable, Completed]

    Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.

  15. def createView(viewName: String, viewOn: String, pipeline: Seq[Bson], createViewOptions: CreateViewOptions): IO[Throwable, Completed]

    Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.

  16. def createView(viewName: String, viewOn: String, pipeline: Seq[Bson]): IO[Throwable, Completed]

    Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.

  17. def drop(clientSession: ClientSession): IO[Throwable, Completed]

    Drops this database.

  18. def drop(): IO[Throwable, Completed]

    Drops this database.

  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def getCollection[TResult](collectionName: String)(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): Task[MongoZioCollection[TResult]]

    Gets a MongoZioCollection, with a specific default document class.

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def listCollectionNames(clientSession: ClientSession): IO[Throwable, String]

    Gets the names of all the collections in this database.

  24. def listCollectionNames(): IO[Throwable, String]

    Gets the names of all the collections in this database.

  25. def listCollections[TResult](clientSession: ClientSession)(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): IO[Throwable, Iterable[TResult]]

    Finds all the collections in this database.

  26. def listCollections[TResult]()(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): IO[Throwable, Iterable[TResult]]

    Finds all the collections in this database.

  27. lazy val name: String

    Gets the name of the database.

  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. def productElementNames: Iterator[String]
    Definition Classes
    Product
  32. lazy val readConcern: ReadConcern

    Get the read concern for the MongoDatabase.

  33. lazy val readPreference: ReadPreference

    Get the read preference for the MongoDatabase.

  34. def runCommand[TResult](clientSession: ClientSession, command: Bson, readPreference: ReadPreference)(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): IO[Throwable, TResult]

    Executes command in the context of the current database.

  35. def runCommand[TResult](clientSession: ClientSession, command: Bson)(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): IO[Throwable, TResult]

    Executes command in the context of the current database.

  36. def runCommand[TResult](command: Bson, readPreference: ReadPreference)(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): IO[Throwable, TResult]

    Executes command in the context of the current database.

  37. def runCommand[TResult](command: Bson)(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): IO[Throwable, TResult]

    Executes command in the context of the current database.

  38. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. def watch(clientSession: ClientSession, pipeline: Seq[Bson]): IO[Throwable, ChangeStreamDocument[Document]]

    Creates a change stream for this collection.

  43. def watch(clientSession: ClientSession): IO[Throwable, ChangeStreamDocument[Document]]

    Creates a change stream for this collection.

  44. def watch(pipeline: Seq[Bson]): IO[Throwable, ChangeStreamDocument[Document]]

    Creates a change stream for this collection.

  45. def watch(): IO[Throwable, ChangeStreamDocument[Document]]

    Creates a change stream for this collection.

  46. def withCodecRegistry(codecRegistry: CodecRegistry): MongoZioDatabase

    Create a new MongoZioDatabase instance with a different codec registry.

  47. def withReadConcern(readConcern: ReadConcern): MongoZioDatabase

    Create a new MongoZioDatabase instance with a different read concern.

  48. def withReadPreference(readPreference: ReadPreference): MongoZioDatabase

    Create a new MongoZioDatabase instance with a different read preference.

  49. def withWriteConcern(writeConcern: WriteConcern): MongoZioDatabase

    Create a new MongoZioDatabase instance with a different write concern.

  50. lazy val writeConcern: WriteConcern

    Get the write concern for the MongoDatabase.

Deprecated Value Members

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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped