Skip to content

quick wrapper around libjq to expose it as a postgresql function. Not recommended for usage. This is/was more or less a learning exercise for me.

License

Notifications You must be signed in to change notification settings

chadcatlett/pg-jq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING

This is a toy PostgreSQL extension that exposes basic libjq functionality to PostgreSQL.

Do not use for anything serious. 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.

Installation Notes

This is purposefully empty. I don't want anyone to attempt to use this terrible thing in a real environment.

About

quick wrapper around libjq to expose it as a postgresql function. Not recommended for usage. This is/was more or less a learning exercise for me.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages