Simple PLV8

At my day job we use Postgres as our primary data store and Node.js for a lot of our services. I had heard about PLV8 before but hadn’t had a chance to give it a try. Here is a simple example:

In this example blob is a JSON column in the snapshot table. I know this could be easily done with the JSON functions but there will definitely be times where PLV8 is the simpler solution.