Package-level declarations

The BSON factory, documents and arrays.

Types

Link copied to clipboard

Implementation of opensavvy.ktmongo.bson.BsonArray based on the official MongoDB drivers.

Implementation of a KtMongo opensavvy.ktmongo.bson.BsonArray that wraps a org.bson.BsonArray.

Link copied to clipboard

Implementation of opensavvy.ktmongo.bson.BsonDocument based on the official MongoDB drivers.

Implementation of a KtMongo opensavvy.ktmongo.bson.BsonDocument that wraps a org.bson.BsonDocument.

Link copied to clipboard
expect class BsonFactory : BsonFactory

Creates KtMongo BsonDocument and BsonArray instances by wrapping the equivalents from the official drivers.

actual class BsonFactory(codecRegistry: CodecRegistry) : BsonFactory

BsonDocument and BsonArray factory that uses the official MongoDB driver's CodecRegistry machinery.

Link copied to clipboard

Implementation of opensavvy.ktmongo.bson.BsonValue based on the official MongoDB drivers.

Implementation of a KtMongo opensavvy.ktmongo.bson.BsonValue that wraps a org.bson.BsonValue.

Functions

Link copied to clipboard
inline fun <T : Any> BsonFactory.encode(obj: T): BsonDocument

Writes an arbitrary Kotlin obj into a top-level BSON document.