You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: mongodb/vibe/db/mongo/collection.d
+9
Original file line number
Diff line number
Diff line change
@@ -1313,6 +1313,15 @@ struct MongoCollection {
1313
1313
}
1314
1314
}
1315
1315
1316
+
/// Drop a collection
1317
+
@safeunittest {
1318
+
import vibe.db.mongo.mongo;
1319
+
auto client = connectMongoDB("127.0.0.1");
1320
+
auto chunks = client.getCollection("test.fs.chunks");
1321
+
1322
+
chunks.drop;
1323
+
}
1324
+
1316
1325
/**
1317
1326
Specifies a level of isolation for read operations. For example, you can use read concern to only read data that has propagated to a majority of nodes in a replica set.
0 commit comments