- mgDropDatabase
Bson mgDropDatabase(MongoDatabase db)
The dropDatabase command drops the database, deleting the associated data files.
- mgDropIndexes
Bson mgDropIndexes(MongoDatabase db, string collection, string index)
The dropIndexes command drops one or more indexes (except the index on the _id field) from the specified collection.
- mgDropIndexes
Bson mgDropIndexes(MongoDatabase db, string collection, string[] indexes)
Undocumented in source. Be warned that the author may not have intended to support it.
- mgListCollections
Bson mgListCollections(MongoDatabase db)
Retrieve information, i.e. the name and options, about the collections and views in a database.
Specifically, the command returns a document that contains information with which to create a cursor to the collection information.
- mgListCollections
Bson mgListCollections(MongoDatabase db, bool authorizedCollections, bool nameOnly)
Undocumented in source. Be warned that the author may not have intended to support it.
- mgRenameCollection
Bson mgRenameCollection(MongoDatabase db, string fromCollection, string toCollection, bool dropTarget)
Undocumented in source. Be warned that the author may not have intended to support it.