Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plv8/pljs
PLJS - Javascript Language Plugin for PostreSQL
https://github.com/plv8/pljs
Last synced: 4 days ago
JSON representation
PLJS - Javascript Language Plugin for PostreSQL
- Host: GitHub
- URL: https://github.com/plv8/pljs
- Owner: plv8
- License: other
- Created: 2023-06-05T03:36:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-06T19:49:37.000Z (6 days ago)
- Last Synced: 2024-11-06T20:29:36.461Z (6 days ago)
- Language: C
- Size: 235 KB
- Stars: 120
- Watchers: 9
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: ROADMAP.md
Awesome Lists containing this project
- postgresql-is-awesome - PLJS - Javascript Language Plugin for PostreSQL
README
# PLJS
PLJS is a Javascript Language Extension for _"modern"_ PostgreSQL.
It is compact, lightweight, and decently fast.
## Technology
Javascript: [QuickJS](https://bellard.org/quickjs/quickjs.html)
PostgreSQL: 14+
### Current Status
Close to initial release.
It compiles, and is on track to match functionality of [PLV8](https://github.com/plv8/plv8).
Missing:
- Windows
- SRF
- startup functionsAlso, WASM will likely never be added to this extension.
## Building
Building is meant to be easy, but not all platforms have been worked out as far as the build instructions. Please use this as an example of how to build in the meantime.
## MacOS
### Requirements
- XCode
- git### Building
```
$ make install
```## FAQ
Q. Is this a replacement for [PLV8](https://github.com/plv8/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](https://github.com/bellard/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](https://github.com/plv8/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.