File: plruby.sql

package info (click to toggle)
postgresql-plruby 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,500 kB
  • ctags: 1,259
  • sloc: ansic: 8,272; sql: 1,841; ruby: 882; sh: 62; makefile: 39
file content (10 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
/*
 * Run this script in the database of your choice to install PL/Ruby.
 */

CREATE FUNCTION plruby_call_handler() RETURNS language_handler
    AS 'plruby'
    LANGUAGE C;

CREATE TRUSTED LANGUAGE plruby
    HANDLER plruby_call_handler;