Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borkdude/plsci
PostgreSQL procedural language handler for Clojure via SCI
https://github.com/borkdude/plsci
clojure postgresql
Last synced: 16 days ago
JSON representation
PostgreSQL procedural language handler for Clojure via SCI
- Host: GitHub
- URL: https://github.com/borkdude/plsci
- Owner: borkdude
- License: epl-1.0
- Created: 2021-01-11T10:17:52.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-16T22:23:22.000Z (almost 4 years ago)
- Last Synced: 2024-10-03T12:16:29.513Z (about 1 month ago)
- Topics: clojure, postgresql
- Language: Rust
- Homepage:
- Size: 32.2 KB
- Stars: 49
- Watchers: 5
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pl/sci
[![project chat](https://img.shields.io/badge/slack-join_chat-brightgreen.svg)](https://app.slack.com/client/T03RZGPFR/C015LCR9MHD)
## Status
This is very much an experiment and I'm open to feedback on where to take this
next.## Build
### Requirements
- [lein](https://leiningen.org/)
- [GraalVM CE 20.3.0 Java 11](https://github.com/graalvm/graalvm-ce-builds/releases/tag/vm-20.3.0)
- [cargo](https://doc.rust-lang.org/stable/cargo/)### 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).2. Run `cargo pgx run pg13`. Then try it out:
```
psql (13.0)
Type "help" for help.plsci=# create extension plsci;
CREATE EXTENSIONplsci=# select * from plsci('(+ 1 2 3)');
plsci
-------
6
(1 row)
```## License
Copyright © 2021 Michiel Borkent
Distributed under the EPL License. See LICENSE.