by doliveira · 3y ago · 0 comments
At the very least, this approach makes things feel much safer. I would like to know if there better ways to do it, and if there are similar approaches for Postgres procedures.
It lets you write a function in nodejs that actually executes in plv8 inside the database.
To your project code though, it mostly looks like a normal js function (with some limitations).
Amongst other benefits, it allows you to manage your plv8 functions as a normal part of your repo.