mecano
Version:
Common functions for system deployment.
28 lines (25 loc) • 572 B
JavaScript
// Generated by CoffeeScript 1.11.1
var db;
module.exports = function(options) {
var database, k, ref, v;
if (options.db == null) {
options.db = {};
}
ref = options.db;
for (k in ref) {
v = ref[k];
if (options[k] == null) {
options[k] = v;
}
}
if (options.database == null) {
options.database = options.argument;
}
database = options.database;
delete options.database;
return this.execute({
cmd: db.cmd(options, "DROP DATABASE IF EXISTS " + database + ";"),
code_skipped: 2
});
};
db = require('../../misc/db');