code: function jsonbSetToSql(updateColumn, jsonbSet) {
    var items = jsonbSet.items;
    var sql = '';
    var curTarget = '';
    items.forEach((val, idx) => {
      var target = '"' + updateColumn + '"';
      if (idx > 0) target = curTarget;
  
      var path = val.path;
      var keyPath = '';
      if (Array.isArray(path)) {
        path.forEach((p, idx) => {
          if (typeof p == 'string') path[idx] = '"' + p + '"'
        });
        keyPath += '{' + path.join(',') + '}';
      }
      else keyPath = path;
  
      var newValue = val.value;
      if (typeof newValue == 'object') newValue = JSON.stringify(newValue);
  
      var createMissing = '';
      if (val.createMissing == false) createMissing = ',false';
  
      sql = 'jsonb_set(' + target + ',\'' + keyPath + '\',\'' + newValue + '\'' + createMissing + ')';
      curTarget = sql;
    });
    return sql;
  }
docs: input:
  'PRCampaign',
  [
  {path:['a','b',1],value:{s:1,e:1}},
  {path:'{"a","c"}',value:'{"s":1,"e":1}'}
  ]
  output:
  jsonb_set(jsonb_set("PRCampaign",'{"a","b",1}','{"s":1,"e":1}'),'{"a","c"}','{"s":1,"e":1}')
  
  @param updateColumn
  @param jsonbSet
  @returns {string}