Package-level declarations

Types

Link copied to clipboard

Entry-point to the KtMongo Multiplatform driver.

Link copied to clipboard

A collection stores related documents together.

Link copied to clipboard
interface MongoDatabase

A single MongoDB instance can store multiple databases.

Functions

Link copied to clipboard
suspend fun MongoClient(hostname: String = "localhost", port: Int = 27017, coroutineContext: CoroutineContext, bsonFactory: BsonFactory = BsonFactory(), objectIdGenerator: ObjectIdGenerator = ObjectIdGenerator.Default(), propertyNameStrategy: PropertyNameStrategy = PropertyNameStrategy.Default): MongoClient

Connects to the database at the specified hostname and port.