plsci

PostgreSQL procedural language handler for Clojure via SCI

EPL-1.0 License

Stars
49

pl/sci

Status

This is very much an experiment and I'm open to feedback on where to take this next.

Build

Requirements

Steps

  1. Set GRAALVM_HOME to your GraalVM directory (the one that contains the bin directory).

  2. Run script/compile-libplsci. Currently this build script contains some macOS-specific things like .dylib and install_name_tool. This will be made more portable later on (PR welcome).

  3. Run cargo pgx run pg13. Then try it out:

psql (13.0)
Type "help" for help.

plsci=# create extension plsci;
CREATE EXTENSION

plsci=# select * from plsci('(+ 1 2 3)');
 plsci
-------
 6
(1 row)

License

Copyright © 2021 Michiel Borkent

Distributed under the EPL License. See LICENSE.