postgres/client.js
function patch(prop) {
  return (key, value) => {
    const { schema, table } = findSchemaAndTable(key);

    return raw('UPDATE ?? SET ?? = ?? || ? WHERE id = ?', [`${schema ? `${schema}.` : ''}${table}`, prop, prop, JSON.stringify(value), key]);
  };
}
function patch(prop) {
  return (key, value) => {
    const { schema, table } = findSchemaAndTable(key);

    return raw('UPDATE ?? SET ?? = ?? || ? WHERE id = ?', [`${schema ? `${schema}.` : ''}${table}`, prop, prop, JSON.stringify(value), key]);
  };
}
function patch ( prop ) { return ( key , value ) => { const { schema , table } = findSchemaAndTable ( key ) ; return raw ( 'UPDATE ?? SET ?? = ?? || ? WHERE id = ?' , [ ` ${ schema ? ` ${ schema } ` : '' } ${ table } ` , prop , prop , JSON . stringify ( value ) , key ] ) ; } ; }
Returns a function that handles data patching based on the curried prop.
@param {String} prop
@return {Function}
Returns a function that handles data patching based on the curried prop .