Crates.io | pg_jq |
lib.rs | pg_jq |
version | 0.0.4 |
source | src |
created_at | 2021-10-08 18:38:25.56989 |
updated_at | 2021-10-08 23:32:29.80249 |
description | A PostgreSQL extension to expose libjq as a basic function. Not recommended for real usage. It is a toy. |
homepage | https://github.com/chadcatlett/pg-jq |
repository | https://github.com/chadcatlett/pg-jq |
max_upload_size | |
id | 462459 |
size | 40,172 |
This is a toy PostgreSQL extension that exposes basic libjq functionality to PostgreSQL.
Do not use for anything series. It might crash your DB server. You have been warned.
This "project" depends on the amazing pgx project.
To compile you must have libjq installed, often it is installed by installing jq itself. Use your favorite package manager to install it.
If your package manager installs things outside of the default search paths for your default
compiler toolchain you'll need to tell the jq crates where to find the libraries using
the enviornment variable JQ_LIB_DIR
. For example on macOS using MacPorts one would use JQ_LIB_DIR=/opt/local/lib
.
Reference the pgx documentation for information how to work with extensions using pgx. Its documentation is really good.
This is purposefully empty. I don't want anyone to attempt to use this terrible thing in a real environment.