Sha256: 21de85678b534f682e22a6a39f96d9c4e715006788ba9d3d393782c2a4a3fc6d

Contents?: true

Size: 589 Bytes

Versions: 6

Compression:

Stored size: 589 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] = if cleared?
			" cleared"
		else
			" status=#{res_status(result_status)} ntuples=#{ntuples} nfields=#{nfields} cmd_tuples=#{cmd_tuples}"
		end
		return str
	end

end # class PG::Result

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pg-1.0.0-x64-mingw32 lib/pg/result.rb
pg-1.0.0-x86-mingw32 lib/pg/result.rb
pg-1.0.0 lib/pg/result.rb
pg-0.21.0-x64-mingw32 lib/pg/result.rb
pg-0.21.0-x86-mingw32 lib/pg/result.rb
pg-0.21.0 lib/pg/result.rb