MongoDBConnection

data class MongoDBConnection(val user: String, val password: String, val host: String, val port: Int)

Represents connection configuration for a MongoDB server. Handles credential encoding and connection string generation.

Constructors

Link copied to clipboard
constructor(user: String, password: String, host: String, port: Int)

Properties

Link copied to clipboard

The MongoDB server host address.

Link copied to clipboard

The MongoDB password for authentication.

Link copied to clipboard
val port: Int

The MongoDB server port number.

Link copied to clipboard

The MongoDB username for authentication.

Functions

Link copied to clipboard

Generates the MongoDB connection URI with properly encoded credentials.