Skip to content

Commit 55eb2e7

Browse files
committed
start updates for plv8u
1 parent baa40b6 commit 55eb2e7

File tree

3 files changed

+25
-60
lines changed

3 files changed

+25
-60
lines changed

META.json

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "plv8",
3-
"abstract": "A procedural language in JavaScript powered by V8",
4-
"description": "plv8 is a trusted procedural language that is safe to use, fast to run and easy to develop.",
5-
"version": "2.1.0",
2+
"name": "plv8u",
3+
"abstract": "A procedural language in JavaScript powered by V8 (Untrusted)",
4+
"description": "plv8u is an untrusted procedural language that is safe to use, fast to run and easy to develop.",
5+
"version": "0.1.0-dv",
66
"maintainer": [
77
"Jerry Sievert <[email protected]>"
88
],
@@ -22,33 +22,21 @@
2222
}
2323
},
2424
"provides": {
25-
"plv8": {
26-
"file": "plv8--2.1.0.sql",
25+
"plv8u": {
26+
"file": "plv8u--0.1.0-dev.sql",
2727
"docfile": "doc/plv8.md",
28-
"version": "2.0.3-dev",
28+
"version": "0.1.0-dev",
2929
"abstract": "A procedural language in JavaScript"
30-
},
31-
"plcoffee": {
32-
"file": "plcoffee--2.1.0.sql",
33-
"docfile": "doc/plv8.md",
34-
"version": "2.0.3-dev",
35-
"abstract": "A procedural language in CoffeeScript"
36-
},
37-
"plls": {
38-
"file": "plls--2.1.0.sql",
39-
"docfile": "doc/plv8.md",
40-
"version": "2.0.3-dev",
41-
"abstract": "A procedural language in LiveScript"
4230
}
4331
},
4432
"resources": {
45-
"homepage": "https://github.com/plv8/plv8",
33+
"homepage": "https://github.com/plv8/plv8u",
4634
"bugtracker": {
47-
"web": "https://github.com/plv8/plv8/issues"
35+
"web": "https://github.com/plv8/plv8u/issues"
4836
},
4937
"repository": {
50-
"url": "https://github.com/plv8/plv8",
51-
"web": "https://github.com/plv8/plv8.git",
38+
"url": "https://github.com/plv8/plv8u",
39+
"web": "https://github.com/plv8/plv8u.git",
5240
"type": "git"
5341
}
5442
},
@@ -59,6 +47,7 @@
5947
"tags": [
6048
"PL",
6149
"JavaScript",
62-
"v8"
50+
"v8",
51+
"untrusted"
6352
]
6453
}

Makefile

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# 'make static' will download v8 and build, then statically link to it.
1313
#
1414
#-----------------------------------------------------------------------------#
15-
PLV8_VERSION = 2.1.0
15+
PLV8_VERSION = 0.1.0-dev
1616

1717
PG_CONFIG = pg_config
1818
PGXS := $(shell $(PG_CONFIG) --pgxs)
@@ -22,26 +22,16 @@ PG_VERSION_NUM := $(shell cat `$(PG_CONFIG) --includedir-server`/pg_config*.h \
2222

2323
# set your custom C++ compler
2424
CUSTOM_CC = g++
25-
JSS = coffee-script.js livescript.js
26-
# .cc created from .js
27-
JSCS = $(JSS:.js=.cc)
2825
SRCS = plv8.cc plv8_type.cc plv8_func.cc plv8_param.cc $(JSCS)
2926
OBJS = $(SRCS:.cc=.o)
30-
MODULE_big = plv8
31-
EXTENSION = plv8
32-
PLV8_DATA = plv8.control plv8--$(PLV8_VERSION).sql
27+
MODULE_big = plv8u
28+
EXTENSION = plv8u
29+
PLV8_DATA = plv8u.control plv8--$(PLV8_VERSION).sql
3330

3431
DATA = $(PLV8_DATA)
35-
ifndef DISABLE_DIALECT
36-
DATA += plcoffee.control plcoffee--$(PLV8_VERSION).sql \
37-
plls.control plls--$(PLV8_VERSION).sql
38-
endif
3932
DATA_built = plv8.sql
4033
REGRESS = init-extension plv8 plv8-errors inline json startup_pre startup varparam json_conv \
4134
jsonb_conv window guc es6 arraybuffer composites currentresource
42-
ifndef DISABLE_DIALECT
43-
REGRESS += dialect
44-
endif
4535

4636
SHLIB_LINK += -lv8
4737
ifdef V8_OUTDIR
@@ -51,15 +41,6 @@ SHLIB_LINK += -lv8_libplatform
5141
endif
5242

5343

54-
# v8's remote debugger is optional at the moment, since we don't know
55-
# how much of the v8 installation is built with debugger enabled.
56-
ifdef ENABLE_DEBUGGER_SUPPORT
57-
OPT_ENABLE_DEBUGGER_SUPPORT = -DENABLE_DEBUGGER_SUPPORT
58-
endif
59-
60-
# for older g++ (e.g. 4.6.x), which do not support c++11
61-
#OPTFLAGS = -O2 -std=gnu++0x -fno-rtti
62-
6344
OPTFLAGS = -O2 -std=c++11 -fno-rtti
6445

6546
CCFLAGS = -Wall $(OPTFLAGS) $(OPT_ENABLE_DEBUGGER_SUPPORT)
@@ -85,14 +66,6 @@ plv8_config.h: plv8_config.h.in Makefile
8566
%.o : %.cc plv8_config.h plv8.h
8667
$(CUSTOM_CC) $(CCFLAGS) $(CPPFLAGS) -fPIC -c -o $@ $<
8768

88-
# Convert .js to .cc
89-
$(JSCS): %.cc: %.js
90-
echo "extern const unsigned char $(subst -,_,$(basename $@))_binary_data[] = {" >$@
91-
ifndef DISABLE_DIALECT
92-
(od -txC -v $< | \
93-
sed -e "s/^[0-9]*//" -e s"/ \([0-9a-f][0-9a-f]\)/0x\1,/g" -e"\$$d" ) >>$@
94-
endif
95-
echo "0x00};" >>$@
9669

9770
# VERSION specific definitions
9871
ifeq ($(shell test $(PG_VERSION_NUM) -ge 90100 && echo yes), yes)

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
PL/v8 - A Procedural Language in JavaScript powered by V8
1+
PL/v8U - A Procedural Language in JavaScript powered by V8 (Untrusted)
22
=================================================
33

44
PL/v8 is a shared library that provides a PostgreSQL procedural language powered
55
by V8 JavaScript Engine. With this program you can write in JavaScript your
66
function that is callable from SQL.
77

8+
This is the Untrusted version, which is a work in progress. You should likely
9+
be using [PL/v8](https://github.com/plv8/plv8).
10+
811
## Documentation
912
The documentation covers the following implemented features:
1013

@@ -29,8 +32,8 @@ The documentation covers the following implemented features:
2932
- [Dialects](/doc/plv8.md#dialects)
3033

3134
## Notes:
32-
PL/v8 is hosted on github at:
33-
https://github.com/plv8/plv8
35+
PL/v8U is hosted on github at:
36+
https://github.com/plv8/plv8U
3437

35-
PL/v8 is distributed by PGXN. For more detail, see:
36-
http://pgxn.org/dist/plv8/doc/plv8.html
38+
PL/v8U is distributed by PGXN. For more detail, see:
39+
http://pgxn.org/dist/plv8/doc/plv8u.html

0 commit comments

Comments
 (0)