Module: PG

### Home Classes Methods

### In Files

- lib/pg.rb
- lib/pg/coder.rb
- lib/pg/exceptions.rb
- lib/pg/text_decoder.rb
- lib/pg/text_encoder.rb

### Namespace

- MODULE PG::BasicTypeRegistry
- MODULE PG::Constants
- MODULE PG::TextDecoder
- MODULE PG::TextEncoder
- CLASS PG::BasicTypeMapBasedOnResult
- CLASS PG::BasicTypeMapForQueries
- CLASS PG::BasicTypeMapForResults
- CLASS PG::Coder
- CLASS PG::CompositeCoder
- CLASS PG::Connection
- CLASS PG::CopyCoder
- CLASS PG::Error
- CLASS PG::NotAllCopyDataRetrieved
- CLASS PG::Result
- CLASS PG::TypeMapByColumn

### Methods

- ::connect
- ::version_string

### Files

- LICENSE
- Manifest.txt
- POSTGRES
- README-OS_X.rdoc
- README-Windows.rdoc
- README.ja.rdoc
- README.rdoc
- errorcodes.txt

### Class/Module Index

Quicksearch

- PG
- PG::BasicTypeMapBasedOnResult
- PG::BasicTypeMapForQueries
- PG::BasicTypeMapForResults
- PG::BasicTypeMapForResults::WarningTypeMap
- PG::BasicTypeRegistry
- PG::BasicTypeRegistry::CoderMap
- PG::Coder
- PG::Coder::BinaryFormatting
- PG::CompositeCoder
- PG::Connection
- PG::Connection
- PG::Constants
- PG::CopyCoder
- PG::Error
- PG::NotAllCopyDataRetrieved
- PG::Result
- PG::Result
- PG::TextDecoder
- PG::TextDecoder::Date
- PG::TextDecoder::TimestampWithTimeZone
- PG::TextDecoder::TimestampWithoutTimeZone
- PG::TextEncoder
- PG::TextEncoder::Date
- PG::TextEncoder::TimestampWithTimeZone
- PG::TextEncoder::TimestampWithoutTimeZone
- PG::TypeMapByColumn
- Object
- Object::PGconn
- Object::PGresult

No matching classes.

# 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 44
    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 36
    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.