Skip to content

Commit

Permalink
Update README_INSTALL_PLV8.md
Browse files Browse the repository at this point in the history
  • Loading branch information
justintocci authored Nov 8, 2016
1 parent 79eb5a4 commit a5c8ea3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README_INSTALL_PLV8.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ Back to commands:

CREATE EXTENSION plv8;


CREATE EXTENSION plv8;

CREATE FUNCTION test_v8(text)
RETURNS text as
$BODY$
return $1.substring(0,5);
$BODY$
LANGUAGE plv8;

SELECT test_v8('1234567890'); // should return 12345



0 comments on commit a5c8ea3

Please sign in to comment.