MCPcopy
hub / github.com/sequelize/sequelize / dropDatabase

Method dropDatabase

lib/dialects/abstract/query-interface.js:46–50  ·  lib/dialects/abstract/query-interface.js::QueryInterface.dropDatabase

* Drop a database * * @param {string} database Database name to drop * @param {object} [options] Query options * * @returns {Promise}

(database, options)

Source from the content-addressed store, hash-verified

44 * @returns {Promise}
45 */
46 async dropDatabase(database, options) {
47 options = options || {};
48 const sql = this.queryGenerator.dropDatabaseQuery(database);
49 return await this.sequelize.query(sql, options);
50 }
51
52 /**
53 * Create a schema

Callers 1

Calls 2

dropDatabaseQueryMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected