kmongo / org.litote.kmongo.service / MongoClientProvider

MongoClientProvider

object MongoClientProvider (source)

Provides a MongoClient class. Common interface for sync and async driver. This object is mainly used for tests.

Functions

createMongoClient

Create a new client with the given connection string.

fun <T : Closeable> createMongoClient(connectionString: ConnectionString): T