liveBook · Manning

PLV8

As explained in Just Use Postgres!

PLV8 is a PostgreSQL extension that embeds the V8 JavaScript engine for executing JavaScript database functions.

PLV8 embeds the V8 JavaScript engine in PostgreSQL, letting developers write JavaScript-based database logic and call it from SQL. section 7.3

Use PLV8 to:

  • Create database functions or procedures in JavaScript rather than PL/pgSQL. section 7.3
  • Execute JavaScript functions through the PgCompute client-side library, allowing application logic to bypass SQL. section 7.3

How Just Use Postgres! covers it

How deep it goes
Defines the embedding and calling model but stops short of syntax, installation, execution internals, and deployment guidance.
Examples
Uses JavaScript-based database logic and PgCompute-driven function execution as its concrete examples.
What it assumes
Assumes PostgreSQL database-function context while requiring no PL/pgSQL expertise.
What you can do after
Apply it via SQL or PgCompute to call JavaScript database functions from database or application logic.
How it connects
Connects JavaScript, PostgreSQL functions, PL/pgSQL, and the PgCompute client-side library.

This explainer was generated by Manning's knowledge graph from the text of Just Use Postgres!. The section links point to the parts of the book it draws on.