kmongo / org.litote.kmongo.rxjava2 / com.mongodb.reactivestreams.client.MongoDatabase

Extensions for com.mongodb.reactivestreams.client.MongoDatabase

dropCollection

Drops this collection from the Database.

fun <T : Any> MongoDatabase.dropCollection(): Completable
fun MongoDatabase.dropCollection(collectionName: String): Completable

runCommand

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

fun <TResult : Any> MongoDatabase.runCommand(command: String, readPreference: ReadPreference): Maybe<TResult>
fun <TResult : Any> MongoDatabase.runCommand(command: String): Maybe<TResult>