ali-mysql-client
Version:
a lightweight mysql tools for nodejs
22 lines (17 loc) • 359 B
JavaScript
;
class Execution {
constructor(command, sql, arg) {
this.command = command;
this.sql = sql;
this.arg = arg;
}
format() {
const { sql, arg } = this;
return this.command.format(sql, arg);
}
execute() {
const { sql, arg } = this;
return this.command.execute({ sql, arg });
}
}
module.exports = Execution;