UNPKG

ali-mysql-client

Version:
22 lines (17 loc) 359 B
'use strict'; 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;