public class MongoDatabasesKt
@NotNull
public static io.reactivex.Completable drop(@NotNull
com.mongodb.async.client.MongoDatabase $receiver)
Drops this database.
@NotNull
public static io.reactivex.Completable createCollection(@NotNull
com.mongodb.async.client.MongoDatabase $receiver,
@NotNull
java.lang.String collectionName)
Create a new collection with the given name.
collectionName - the name for the new collection to create@NotNull
public static io.reactivex.Completable createCollection(@NotNull
com.mongodb.async.client.MongoDatabase $receiver,
@NotNull
java.lang.String collectionName,
@NotNull
com.mongodb.client.model.CreateCollectionOptions options)
Create a new collection with the selected options
collectionName - the name for the new collection to createoptions - various options for creating the collection@NotNull
public static io.reactivex.Completable createView(@NotNull
com.mongodb.async.client.MongoDatabase $receiver,
@NotNull
java.lang.String viewName,
@NotNull
java.lang.String viewOn,
@NotNull
java.util.List<? extends org.bson.conversions.Bson> pipeline)
Creates a view with the given name, backing collection/view name, and aggregation pipeline that defines the view.
viewName - the name of the view to createviewOn - the backing collection/view for the viewpipeline - the pipeline that defines the view@NotNull
public static io.reactivex.Completable createView(@NotNull
com.mongodb.async.client.MongoDatabase $receiver,
@NotNull
java.lang.String viewName,
@NotNull
java.lang.String viewOn,
@NotNull
java.util.List<? extends org.bson.conversions.Bson> pipeline,
@NotNull
com.mongodb.client.model.CreateViewOptions createViewOptions)
Creates a view with the given name, backing collection/view name, aggregation pipeline, and options that defines the view.
viewName - the name of the view to createviewOn - the backing collection/view for the viewpipeline - the pipeline that defines the viewcreateViewOptions - various options for creating the view@NotNull
public static io.reactivex.Completable dropCollection(@NotNull
com.mongodb.async.client.MongoDatabase $receiver,
@NotNull
java.lang.String collectionName)
Drops this collection from the Database.