plruby.rb

Path: plruby.rb
Last Update: Tue Mar 16 17:33:39 GMT 2004

Warning

For documentation purpose, the modules PLRuby, PLRuby::Description are defined but don’t exist in reality

PLRuby

PLRuby is a loadable procedural language for the Postgres database system that enable the Ruby language to create functions and trigger procedures

Functions and triggers are singleton methods of the module PLtemp.

WARNING

if PLRuby was NOT compiled with —enable-conversion all arguments (to the function or the triggers) are passed as string values, except for NULL values represented by nil.

In this case, you must explicitely call a conversion function (like to_i) if you want to use an argument as an integer

See

Class hierarchy

Global variable

$Plans:can be used to store prepared plans. (hash, tainted)

Methods

warn  

Classes and Modules

Module PLRuby
  ::Module PLRuby::Description
  ::  ::Module PLRuby::Description::Function
  ::  ::  ::Class PLRuby::Description::Function::ExprMultiResult
  ::  ::  ::Class PLRuby::Description::Function::SFRM
  ::  ::Class PLRuby::Description::Conversion
  ::  ::Class PLRuby::Description::Singleton_method
  ::  ::Class PLRuby::Description::Trigger
  ::Module PLRuby::PL
  ::  ::Class PLRuby::PL::Cursor
  ::  ::Class PLRuby::PL::Plan
  ::Class PLRuby::BitString
  ::Class PLRuby::Box
  ::Class PLRuby::Circle
  ::Class PLRuby::MacAddr
  ::Class PLRuby::NetAddr
  ::Class PLRuby::Path
  ::Class PLRuby::Point
  ::Class PLRuby::Polygon
  ::Class PLRuby::Segment
  ::Class PLRuby::Tinterval

Public Instance methods

Ruby interface to PostgreSQL elog()

Possible value for level are NOTICE, DEBUG and NOIND

Use raise() if you want to simulate elog(ERROR, "…")

[Validate]