by netcraft · 5y ago · 0 comments
In my example, say a user edits their document and saves it (to a row in the DB). I want to be able to tell what their previous row was, what the new one is, and basically git diff them.
, HSTORE(oldData.*) - HSTORE(newData.*)
, HSTORE(newData.*) - HSTORE(oldData.*)
```
this is basically what we do, getting the old and new of only what changed.