This repository was archived by the owner on Aug 22, 2020. It is now read-only.

Description
I am attempting to write a function that lets me drop the database I am currently using. My method is a follows:
dropDatabase(): Promise<void>{
return new Promise<void>((resolve, reject) => {
this.getConnection().then(connection =>{
connection.dropDatabase().then(()=>{
connection.close().then(resolve,reject)
}, reject)
},reject)
})
}