case class MongoZioDatabase(javaMongoDatabase: JavaMongoDatabase) extends Product with Serializable
- Alphabetic
- By Inheritance
- MongoZioDatabase
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MongoZioDatabase(javaMongoDatabase: JavaMongoDatabase)
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
- def aggregate[C](clientSession: ClientSession, pipeline: Seq[Bson])(ct: ClassTag[C]): IO[Throwable, Iterable[C]]
Aggregates documents according to the specified aggregation pipeline.
- def aggregate[C](pipeline: Seq[Bson])(ct: ClassTag[C]): IO[Throwable, Iterable[C]]
Aggregates documents according to the specified aggregation pipeline.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- lazy val codecRegistry: CodecRegistry
Get the codec registry for the MongoDatabase.
- def createCollection(clientSession: ClientSession, collectionName: String, options: CreateCollectionOptions): IO[Throwable, Completed]
Create a new collection with the selected options
- def createCollection(clientSession: ClientSession, collectionName: String): IO[Throwable, Completed]
Create a new collection with the given name.
- def createCollection(collectionName: String, options: CreateCollectionOptions): IO[Throwable, Completed]
Create a new collection with the selected options
- def createCollection(collectionName: String): IO[Throwable, Completed]
Create a new collection with the given name.
- 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.
- 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.
- 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.
- 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.
- def drop(clientSession: ClientSession): IO[Throwable, Completed]
Drops this database.
- def drop(): IO[Throwable, Completed]
Drops this database.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listCollectionNames(clientSession: ClientSession): IO[Throwable, String]
Gets the names of all the collections in this database.
- def listCollectionNames(): IO[Throwable, String]
Gets the names of all the collections in this database.
- def listCollections[TResult](clientSession: ClientSession)(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): IO[Throwable, Iterable[TResult]]
Finds all the collections in this database.
- def listCollections[TResult]()(implicit e: MapTo[TResult, Document], ct: ClassTag[TResult]): IO[Throwable, Iterable[TResult]]
Finds all the collections in this database.
- lazy val name: String
Gets the name of the database.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- lazy val readConcern: ReadConcern
Get the read concern for the MongoDatabase.
- lazy val readPreference: ReadPreference
Get the read preference for the MongoDatabase.
- 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.
- 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.
- 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.
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def watch(clientSession: ClientSession, pipeline: Seq[Bson]): IO[Throwable, ChangeStreamDocument[Document]]
Creates a change stream for this collection.
- def watch(clientSession: ClientSession): IO[Throwable, ChangeStreamDocument[Document]]
Creates a change stream for this collection.
- def watch(pipeline: Seq[Bson]): IO[Throwable, ChangeStreamDocument[Document]]
Creates a change stream for this collection.
- def watch(): IO[Throwable, ChangeStreamDocument[Document]]
Creates a change stream for this collection.
- def withCodecRegistry(codecRegistry: CodecRegistry): MongoZioDatabase
Create a new MongoZioDatabase instance with a different codec registry.
- def withReadConcern(readConcern: ReadConcern): MongoZioDatabase
Create a new MongoZioDatabase instance with a different read concern.
- def withReadPreference(readPreference: ReadPreference): MongoZioDatabase
Create a new MongoZioDatabase instance with a different read preference.
- def withWriteConcern(writeConcern: WriteConcern): MongoZioDatabase
Create a new MongoZioDatabase instance with a different write concern.
- lazy val writeConcern: WriteConcern
Get the write concern for the MongoDatabase.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated