UNPKG

xplugin-nextcode

Version:

26 lines (24 loc) 655 B
/** * db.delete */ async function deleteRow(node, input, engine) { var db = input.db; var table = input.table; var where = input.where; // console.info("input", input); // console.info("node", node); if (node.table) { table = node.table; where = input || {}; } let context = { extInfo: engine.context.serverContext.extInfo, }; console.info("deleteRow", JSON.stringify(input), JSON.stringify(context)); var output = await engine.pluginAdapter.plugin.db.deleteRow(db, table, where, context); return output; } module.exports = { "service": "delete", "implement": deleteRow }