UNPKG

orange-orm

Version:

Object Relational Mapper

12 lines (10 loc) 411 B
var newUpdateCommand = require('./commands/newUpdateCommand'); var pushCommand = require('./commands/pushCommand'); var lastCommandMatches = require('./commands/lastCommandMatches'); function updateField(context, table, column, row) { if (lastCommandMatches(context, row)) return; var command = newUpdateCommand(context, table, column, row); pushCommand(context, command); } module.exports = updateField;