pgjq
Use jq in Postgres
Repository
Florents-Tselai/pgJQ
https://github.com/Florents-Tselai/pgJQ
Source
pgjq-0.1.0.tar.gz
pgjq-0.1.0.tar.gz
Overview
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4150 | pgjq | No | Yes | No | Yes | Yes | Yes | - |
| Related | pgbson jsquery pg_jsonschema jsonschema pg_projection jsonb_plperl jsonb_plperlu jsonb_plpython3u documentdb mongo_fdw |
|---|
build with jq-devel
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.1.0 | 1817161514 | pgjq | - |
| RPM | PIGSTY | 0.1.0 | 1817161514 | pgjq_$v | - |
| DEB | PIGSTY | 0.1.0 | 1817161514 | postgresql-$v-pgjq | - |
Build
You can build the RPM / DEB packages for pgjq using pig build:
Install
You can install pgjq directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
Provides a jqprog data type for jq programs and a jq() function to execute them on jsonb objects.
Basic Filtering
Using the @@ Operator
Complex Programs
Passing Arguments
Pass dynamic arguments as a jsonb object, referenced as $var:
Chaining with jsonpath
Working with Files
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)