Class: PG::Result

### Home Classes Methods

### In Files

- lib/pg/result.rb

### Parent

Object

### Methods

- #inspect
- #map_types!

### 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::Result

### Public Instance Methods

inspect() click to toggle source

    # File lib/pg/result.rb, line 18
    def inspect
            str = self.to_s
            str[-1,0] = " status=#{res_status(result_status)} ntuples=#{ntuples} nfields=#{nfields} cmd_tuples=#{cmd_tuples}"
            str
    end

map_types!(type_map) click to toggle source

Apply a type map for all value retrieving methods.

`type_map`: a PG::TypeMap instance.

See PG::BasicTypeMapForResults

    # File lib/pg/result.rb, line 13
    def map_types!(type_map)
            self.type_map = type_map
            self
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.