mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 06:46:00 +00:00
generic drop collection
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user