Skip to content

opensavvy.ktmongo.sync

Declaration and implementation of collections and iterables.

Types

JvmMongoCollection

Implementation of MongoCollection based on MongoDB's MongoCollection.

JvmMongoIterable

Implementation of MongoIterable based on MongoDB's MongoIterable.

LazyMongoIterable

MongoAggregationPipeline

MongoCollection

Methods to interact with a MongoDB collection.

MongoIterable

interface MongoIterable<Document : Any>

Streaming-ready iterable client to read data from the database.

Functions

asKtMongo

Converts a MongoDB MongoIterable into a KtMongo MongoIterable.

@JvmOverloads
fun <Document : Any> MongoCollection<Document>.asKtMongo(nameStrategy: PropertyNameStrategy = PropertyNameStrategy.Default): JvmMongoCollection<Document>

Converts a MongoDB collection into a KtMongo collection.