Open connor-odoherty opened 7 years ago
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) }) }
Facing same issue, @connor-odoherty did you get any solution for this?
I am attempting to write a function that lets me drop the database I am currently using. My method is a follows: