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

Version Path
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/result.rb
pg-0.19.0-x86-mingw32 lib/pg/result.rb
pg-0.19.0-x64-mingw32 lib/pg/result.rb
pg-0.19.0 lib/pg/result.rb
pg-0.19.0.pre20160904200247-x86-mingw32 lib/pg/result.rb
pg-0.19.0.pre20160904200247-x64-mingw32 lib/pg/result.rb
pg-0.19.0.pre20160904200247 lib/pg/result.rb
pg-0.19.0.pre20160820113039-x86-mingw32 lib/pg/result.rb
pg-0.19.0.pre20160820113039-x64-mingw32 lib/pg/result.rb
pg-0.19.0.pre20160820113039 lib/pg/result.rb
pg-0.19.0.pre20160817083826-x86-mingw32 lib/pg/result.rb
pg-0.19.0.pre20160817083826-x64-mingw32 lib/pg/result.rb
pg-0.19.0.pre20160817083826 lib/pg/result.rb
pg-0.19.0.pre20160810143640 lib/pg/result.rb
pg-0.19.0.pre20160409114042 lib/pg/result.rb