kmongo / org.litote.kmongo.reactivestreams / KMongo

KMongo

object KMongo (source)

Main object used to create a MongoClient instance.

Functions

createClient

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

fun createClient(): MongoClient

Create a new client with the given client settings.

fun createClient(settings: MongoClientSettings): MongoClient

Create a new client with the given connection string.

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