Sha256: 00c64922a38c105bc58c43d4935bda6434563544ed58fde5b388648f23a400d0
Contents?: true
Size: 609 Bytes
Versions: 15
Compression:
Stored size: 609 Bytes
Contents
#!/usr/bin/env ruby require 'pg' unless defined?( PG ) class PG::Result # Apply a type map for all value retrieving methods. # # +type_map+: a PG::TypeMap instance. # # See PG::BasicTypeMapForResults def map_types!(type_map) self.type_map = type_map return self end ### Return a String representation of the object suitable for debugging. def inspect str = self.to_s str[-1,0] = " status=#{res_status(result_status)} ntuples=#{ntuples} nfields=#{nfields} cmd_tuples=#{cmd_tuples}" return str end end # class PG::Result # :stopdoc: # Backward-compatible alias PGresult = PG::Result
Version data entries
15 entries across 15 versions & 2 rubygems