Skip to content

Commit 1bc7dae

Browse files
committed
Add 'contrib/jsquery/' from commit 'a8191e16053f8b08a86ae9d24c52ace829023060'
git-subtree-dir: contrib/jsquery git-subtree-mainline: dcf4ae4 git-subtree-split: a8191e1
2 parents dcf4ae4 + a8191e1 commit 1bc7dae

18 files changed

+10337
-0
lines changed

contrib/jsquery/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.so
2+
*.o
3+
jsquery_gram.c
4+
jsquery_scan.c
5+
jsquery_gram.h
6+
regression.diffs
7+
regression.out
8+
results

contrib/jsquery/META.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "JsQuery",
3+
"abstract": "JSON Query Language with GIN indexing support",
4+
"description": "JsQuery provides additional functionality for JSONB, such as a simple and effective way to search in nested objects and arrays, and more comparison operators with index support. It does this by implementing a specialized search syntax, the @@ operator, and the jsquery type for search strings.",
5+
"version": "1.0.0",
6+
"maintainer": [
7+
"Teodor Sigaev <teodor@sigaev.ru>",
8+
"Alexander Korotkov <aekorotkov@gmail.com>",
9+
"Oleg Bartunov <oleg@sai.msu.su>"
10+
],
11+
"license": {
12+
"PostgreSQL": "http://www.postgresql.org/about/licence"
13+
},
14+
"prereqs": {
15+
"runtime": {
16+
"requires": {
17+
"PostgreSQL": "9.4.0"
18+
},
19+
"recommends": {
20+
"PostgreSQL": "9.4.0"
21+
}
22+
}
23+
},
24+
"provides": {
25+
"jsquery": {
26+
"file": "sql/jsquery.sql",
27+
"docfile": "README.md",
28+
"version": "1.0.0",
29+
"abstract": "JSON query language with GIN indexing support"
30+
}
31+
},
32+
"resources": {
33+
"homepage": "https://github.com/postgrespro/jsquery",
34+
"bugtracker": {
35+
"web": "https://github.com/postgrespro/jsquery/issues"
36+
},
37+
"repository": {
38+
"url": "https://github.com/postgrespro/jsquery.git",
39+
"web": "https://github.com/postgrespro/jsquery",
40+
"type": "git"
41+
}
42+
},
43+
"generated_by": "Josh Berkus",
44+
"meta-spec": {
45+
"version": "1.0.0",
46+
"url": "http://pgxn.org/meta/spec.txt"
47+
},
48+
"tags": [
49+
"JSON",
50+
"index",
51+
"search"
52+
]
53+
}

contrib/jsquery/Makefile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# contrib/jsquery/Makefile
2+
3+
MODULE_big = jsquery
4+
OBJS = jsonb_gin_ops.o jsquery_constr.o jsquery_extract.o \
5+
jsquery_gram.o jsquery_io.o jsquery_op.o jsquery_support.o
6+
7+
EXTENSION = jsquery
8+
DATA = jsquery--1.0.sql
9+
10+
REGRESS = jsquery
11+
# We need a UTF8 database
12+
ENCODING = UTF8
13+
14+
EXTRA_CLEAN = y.tab.c y.tab.h \
15+
jsquery_gram.c jsquery_scan.c jsquery_gram.h
16+
17+
ifdef USE_PGXS
18+
PG_CONFIG ?= pg_config
19+
PGXS := $(shell $(PG_CONFIG) --pgxs)
20+
include $(PGXS)
21+
else
22+
subdir = contrib/jsquery
23+
top_builddir = ../..
24+
include $(top_builddir)/src/Makefile.global
25+
include $(top_srcdir)/contrib/contrib-global.mk
26+
endif
27+
28+
jsquery_gram.o: jsquery_scan.c
29+
30+
jsquery_gram.c: BISONFLAGS += -d
31+
32+
distprep: jsquery_gram.c jsquery_scan.c
33+
34+
maintainer-clean:
35+
rm -f jsquery_gram.c jsquery_scan.c jsquery_gram.h
36+

0 commit comments

Comments
 (0)