plv8 3.1.6

This Release
plv8 3.1.6
Date
Status
Stable
Latest Stable
plv8 3.2.2 —
Other Releases
Abstract
A procedural language in JavaScript powered by V8
Description
plv8 is a trusted procedural language that is safe to use, fast to run and easy to develop.
Released By
jerrysv
License
PostgreSQL
Resources
Special Files
Tags

Extensions

plcoffee 3.1.6
A procedural language in CoffeeScript
plls 3.1.6
A procedural language in LiveScript
plv8 3.1.6
A procedural language in JavaScript

Documentation

README
Docker
README
PLV8
EXTERNAL
External Utilities
FUNCTIONS
Function Calls
README
Building for Windows
CONFIGURATION
Runtime Configuration
PGXN
PLV8 - A Procedural Language in Javascript powered by V8
BUILDING
Building
BUILTINS
PLV8 Built-ins
README
Contributed files

README

PLV8 - A Procedural Language in Javascript powered by V8

PLV8 is a shared library that provides a PostgreSQL procedural language powered by V8 Javascript Engine. With this program you can write in Javascript your function that is callable from SQL.

Building

Note that as PLV8 3.1, there are new build requirements.

Linux

The following packages must be installed to build on Ubuntu:

  • libtinfo5
  • build-essential
  • ninja-build
  • python3
  • pkg-config

MacOS

The following packages must be install to build on MacOS:

  • XCode - and the command line tools
  • brew
  • llvm - version 12 or higher
  • ninja
  • python3

Installing

=# CREATE EXTENSION plv8;

This will install PLV8 into your database if it exists as an extension.

Testing

To test, you can execute:

=# DO $$ plv8.elog(NOTICE, "hello there!"); $$ LANGUAGE plv8;

For full documentation, see https://plv8.github.io/.

Docker

For preliminary Docker support, see ./platforms/Docker/README.md