kmongo / org.litote.kmongo.reactivestreams / KMongo / createClient

createClient

fun createClient(): MongoClient (source)

Creates a new client with the default connection string "mongodb://localhost".

Return
the client

fun createClient(settings: MongoClientSettings): MongoClient (source)

Create a new client with the given client settings.

Parameters

settings - the settings

Return
the client

fun createClient(connectionString: String): MongoClient (source)

Create a new client with the given connection string.

Parameters

connectionString - the connection

Return
the client

fun createClient(connectionString: ConnectionString): MongoClient (source)

Create a new client with the given connection string.

Parameters

connectionString - the settings

Return
the client