updateSQL method

FutureOr updateSQL(
  1. TransactionOperation op,
  2. String entityName,
  3. String table,
  4. SQL sql,
  5. Object id,
  6. Map<String, Object?> fields, {
  7. bool allowAutoInsert = false,
})

Implementation

FutureOr<dynamic> updateSQL(
  TransactionOperation op,
  String entityName,
  String table,
  SQL sql,
  Object id,
  Map<String, Object?> fields, {
  bool allowAutoInsert = false,
}) {
  if (sql.isDummy) return id;

  return executeTransactionOperation(op, sql, (connection) {
    _logTransactionOperationSQL('updateSQL', op, sql);
    return doUpdateSQL(
      entityName,
      table,
      sql,
      id,
      op.transaction,
      connection,
      allowAutoInsert: allowAutoInsert,
    );
  });
}