Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 885 Bytes

File metadata and controls

31 lines (17 loc) · 885 Bytes

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / lib/mongo-schema / destroyDb

Function: destroyDb()

destroyDb(__namedParameters): Promise<boolean>

Drops a database, destroying its collections. If the database does not exist before calling this function, it will be created first then dropped.

Note that this function does not clear the destroyed database's Db instance from internal memory for performance reasons.

Parameters

__namedParameters

__namedParameters.name: string

The name or alias of the database to destroy.

Returns

Promise<boolean>

Source

lib/mongo-schema/index.ts:264