KMongoClientSettings

Builds the MongoClientSettings used by KMongo DSL clients (sync & coroutine).

Properties

Link copied to clipboard
val driverInformation: MongoDriverInformation

The driver information sent to the server.

Functions

Link copied to clipboard
fun configureRegistry(codecRegistry: CodecRegistry = MongoClientSettings.getDefaultCodecRegistry()): CodecRegistry

Adds the KMongo object mapping to the codecRegistry.

Link copied to clipboard
fun settings(connectionString: ConnectionString): MongoClientSettings

Returns default KMongo settings for the given connection string.

fun settings(settings: MongoClientSettings): MongoClientSettings

Returns the settings with the KMongo codec registry.