generic drop collection

This commit is contained in:
Jan Prochazka
2024-08-16 12:52:37 +02:00
parent a89cb607b4
commit c0d664d399
2 changed files with 9 additions and 4 deletions

View File

@@ -105,6 +105,8 @@ const driver = {
switch (type) {
case 'createCollection':
await this.script(pool, `db.createCollection('${operation.collection}')`);
case 'dropOperation':
await this.script(pool, `db.dropCollection('${operation.collection}')`);
default:
throw new Error(`Operation type ${type} not supported`);
}