MCPcopy
hub / github.com/mongodb/node-mongodb-native / dropDatabase

Method dropDatabase

src/db.ts:419–424  ·  view source on GitHub ↗

* Drop a database, removing it permanently from the server. * * @param options - Optional settings for the command

(options?: DropDatabaseOptions)

Source from the content-addressed store, hash-verified

417 * @param options - Optional settings for the command
418 */
419 async dropDatabase(options?: DropDatabaseOptions): Promise<boolean> {
420 return await executeOperation(
421 this.client,
422 new DropDatabaseOperation(this, resolveOptions(this, options))
423 );
424 }
425
426 /**
427 * Fetch all collections for the current db.

Calls 2

executeOperationFunction · 0.90
resolveOptionsFunction · 0.90

Tested by 2

testFunction · 0.64
runProseTestsForFunction · 0.64