Namespace

Included Modules

PG

The top-level PG namespace.

Constants

REVISION

VCS revision

VERSION

Library version

Public Class Methods

connect( *args ) click to toggle source

Convenience alias for PG::Connection.new.

# File lib/pg.rb, line 37
def self::connect( *args )
        return PG::Connection.new( *args )
end
version_string( include_buildnum=false ) click to toggle source

Get the PG library version. If include_buildnum is true, include the build ID.

# File lib/pg.rb, line 29
def self::version_string( include_buildnum=false )
        vstring = "%s %s" % [ self.name, VERSION ]
        vstring << " (build %s)" % [ REVISION[/: ([[:xdigit:]]+)/, 1] || '0' ] if include_buildnum
        return vstring
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.