MongoConnection

mongo4cats.models.client.MongoConnection
See theMongoConnection companion object
sealed abstract class MongoConnection(val host: String, val port: Option[Int], val credential: Option[MongoCredential], val connectionType: MongoConnectionType)

A data model representation of a MongoDB Connection String

Value parameters

connectionType

For switching between different MongoDB connection types, see MongoConnectionType for possible options

credential

Optional credentials that maybe used to establish authentication with the MongoDB

host

The host that serves MongoDB

port

Port where the MongoDB is served in the host

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val host: String
val port: Option[Int]