MongoClient

dappermongo.MongoClient
See theMongoClient companion trait
object MongoClient

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def configured(implicit trace: Trace): ZLayer[Any, Throwable, MongoClient]

Constructs a MongoClient by loading the settings from the built-in ConfigProvider, using the default path of mongodb.

Constructs a MongoClient by loading the settings from the built-in ConfigProvider, using the default path of mongodb.

Attributes

def configured(at: NonEmptyChunk[String])(implicit trace: Trace): ZLayer[Any, Throwable, MongoClient]

Constructs a MongoClient by loading the settings from the built-in ConfigProvider, using the specified path.

Constructs a MongoClient by loading the settings from the built-in ConfigProvider, using the specified path.

Attributes

def fromSettings(settings: MongoSettings)(implicit trace: Trace): ZIO[Scope, Throwable, MongoClient]

Constructs a MongoClient from the specified MongoSettings.

Constructs a MongoClient from the specified MongoSettings.

Attributes

def live(implicit trace: Trace): ZLayer[MongoSettings, Throwable, MongoClient]

Constructs a MongoClient from the environmental MongoSettings.

Constructs a MongoClient from the environmental MongoSettings.

Attributes

def local(implicit trace: Trace): ZLayer[Any, Throwable, MongoClient]

Constructs a MongoClient from the local MongoSettings.

Constructs a MongoClient from the local MongoSettings.

Attributes

def scoped(implicit trace: Trace): ZIO[Scope & MongoSettings, Throwable, MongoClient]

Constructs a MongoClient from the environmental MongoSettings and provides it as a Scoped effect

Constructs a MongoClient from the environmental MongoSettings and provides it as a Scoped effect

Attributes