mongodb :: NativeMongoCollection :: drop
mongoc_collection_drop()
.This function requests that the collection
be dropped,
including all indexes associated with the collection.
# Wrapper for `mongoc_collection_drop()`.
#
# This function requests that the `collection` be dropped,
# including all indexes associated with the collection.
fun drop: Bool import set_mongoc_error `{
bson_error_t error;
if(!mongoc_collection_drop(self, &error)) {
NativeMongoCollection_set_mongoc_error(self, &error);
return false;
}
return true;
`}
lib/mongodb/native_mongodb.nit:478,2--489,3