The PL/V8 Language
From the plv8js wiki website, supported features include:
- Functions can receive any arguments, and return a value or set of records.
- Execute any SQL commands with built-in plv8.execute() function.
- Records are converted to JSON which keys are column names.
- Other types are converted to strings.
- Partial support to write TRIGGER handlers.
- Inline commands with DO statement for PG 9.0 or newer versions.