Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0c47433

Browse files
committed
Add 'contrib/jsquery/' from commit 'cde2aa2a3055e13b0627d04d47c267e3879e7111'
git-subtree-dir: contrib/jsquery git-subtree-mainline: 4e9fed8 git-subtree-split: cde2aa2
2 parents 4e9fed8 + cde2aa2 commit 0c47433

26 files changed

+11879
-0
lines changed

contrib/jsquery/.gitignore

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

contrib/jsquery/.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
os:
2+
- linux
3+
4+
sudo: required
5+
dist: trusty
6+
7+
language: c
8+
9+
compiler:
10+
- clang
11+
- gcc
12+
13+
before_install:
14+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -y install -qq wget ca-certificates; fi
15+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source ./travis/dep-ubuntu-postgres.sh; fi
16+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source ./travis/dep-ubuntu-llvm.sh; fi
17+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
18+
19+
env:
20+
global:
21+
- LLVM_VER=4.0
22+
matrix:
23+
- PG_VER=10 CHECK_TYPE=normal
24+
- PG_VER=10 CHECK_TYPE=static
25+
- PG_VER=10 CHECK_TYPE=valgrind
26+
- PG_VER=9.6 CHECK_TYPE=normal
27+
- PG_VER=9.6 CHECK_TYPE=static
28+
- PG_VER=9.5 CHECK_TYPE=normal
29+
- PG_VER=9.5 CHECK_TYPE=static
30+
- PG_VER=9.4 CHECK_TYPE=normal
31+
- PG_VER=9.4 CHECK_TYPE=static
32+
33+
script: bash ./travis/pg-travis-test.sh

contrib/jsquery/LICENSE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
JsQuery is released under the PostgreSQL License, a liberal Open Source license, similar to the BSD or MIT licenses.
2+
3+
Copyright (c) 2014-2018, Postgres Professional
4+
Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
5+
Portions Copyright (c) 1994, The Regents of the University of California
6+
7+
Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
8+
9+
IN NO EVENT SHALL POSTGRES PROFESSIONAL BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF POSTGRES PROFESSIONAL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10+
11+
POSTGRES PROFESSIONAL SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND POSTGRES PROFESSIONAL HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

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.1",
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.6.5"
21+
}
22+
}
23+
},
24+
"provides": {
25+
"jsquery": {
26+
"file": "sql/jsquery.sql",
27+
"docfile": "README.md",
28+
"version": "1.0.1",
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: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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.1.sql jsquery--1.0--1.1.sql
9+
INCLUDES = jsquery.h
10+
11+
REGRESS = jsquery
12+
# We need a UTF8 database
13+
ENCODING = UTF8
14+
15+
EXTRA_CLEAN = y.tab.c y.tab.h \
16+
jsquery_gram.c jsquery_scan.c jsquery_gram.h
17+
18+
ifdef USE_PGXS
19+
PG_CONFIG ?= pg_config
20+
PGXS := $(shell $(PG_CONFIG) --pgxs)
21+
include $(PGXS)
22+
else
23+
subdir = contrib/jsquery
24+
top_builddir = ../..
25+
include $(top_builddir)/src/Makefile.global
26+
include $(top_srcdir)/contrib/contrib-global.mk
27+
endif
28+
29+
ifdef USE_ASSERT_CHECKING
30+
override CFLAGS += -DUSE_ASSERT_CHECKING
31+
endif
32+
33+
jsquery_gram.o: jsquery_scan.c
34+
35+
jsquery_gram.c: BISONFLAGS += -d
36+
37+
distprep: jsquery_gram.c jsquery_scan.c
38+
39+
maintainer-clean:
40+
rm -f jsquery_gram.c jsquery_scan.c jsquery_gram.h
41+
42+
install: installincludes
43+
44+
installincludes:
45+
$(INSTALL_DATA) $(addprefix $(srcdir)/, $(INCLUDES)) '$(DESTDIR)$(includedir_server)/'

0 commit comments

Comments
 (0)