kmongo / org.litote.kmongo.reactor / com.mongodb.reactor.client.ReactorMongoDatabase

Extensions for com.mongodb.reactor.client.ReactorMongoDatabase

dropCollection

Drops this collection from the Database.

fun <T : Any> ReactorMongoDatabase.dropCollection(): Mono<Void>
fun ReactorMongoDatabase.dropCollection(collectionName: String): Mono<Void>

runCommand

Executes the given command in the context of the current database with the given read preference.

fun <TResult : Any> ReactorMongoDatabase.runCommand(command: String, readPreference: ReadPreference): Mono<TResult>
fun <TResult : Any> ReactorMongoDatabase.runCommand(command: String): Mono<TResult>