Skip to content

plv8/pljs

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

PLJS

PLJS is a Javascript Language Extension for "modern" PostgreSQL.

It is compact, lightweight, and decently fast.

Technology

Javascript: QuickJS

PostgreSQL: 14+

Current Status

Very early.

It compiles, and is on track to match functionality of PLV8.

Missing:

  • Triggers
  • Windows
  • return_next()
  • startup functions

Also, WASM will likely never be added to this extension.

FAQ

Q. Is this a replacement for PLV8?

A. For general cases, no. PLJS is built to be compact and lightweight, as well as easy to build and maintain. It uses QuickJS as the Javascript engine instead of using V8. This makes for a very lightweight build with a tradeoff for speed.

Q. How fast is it compared to PLV8?

A. We shall see, there will be tradeoffs, and before 1.0 release, any tradeoffs will be well documented. Help is always welcome when there is a specific use-case that can be distilled into a simple benchmark.

About

PLJS - Javascript Language Plugin for PostreSQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published