Sha256: 6f104993bcf9c87d054d88bc07b45c790f81a49eb414e403f4ca31854f80a58b

Contents?: true

Size: 584 Bytes

Versions: 21

Compression:

Stored size: 584 Bytes

Contents

# -*- 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

21 entries across 21 versions & 1 rubygems

Version Path
pg-1.1.4-x86-mingw32 lib/pg/result.rb
pg-1.1.4-x64-mingw32 lib/pg/result.rb
pg-1.1.4 lib/pg/result.rb
pg-1.1.3-x86-mingw32 lib/pg/result.rb
pg-1.1.3-x64-mingw32 lib/pg/result.rb
pg-1.1.3 lib/pg/result.rb
pg-1.1.2-x86-mingw32 lib/pg/result.rb
pg-1.1.2-x64-mingw32 lib/pg/result.rb
pg-1.1.2 lib/pg/result.rb
pg-1.1.1-x86-mingw32 lib/pg/result.rb
pg-1.1.1-x64-mingw32 lib/pg/result.rb
pg-1.1.1 lib/pg/result.rb
pg-1.1.0-x86-mingw32 lib/pg/result.rb
pg-1.1.0-x64-mingw32 lib/pg/result.rb
pg-1.1.0 lib/pg/result.rb
pg-1.1.0.pre20180730171000-x86-mingw32 lib/pg/result.rb
pg-1.1.0.pre20180730171000-x64-mingw32 lib/pg/result.rb
pg-1.1.0.pre20180730171000 lib/pg/result.rb
pg-1.1.0.pre20180730144600-x86-mingw32 lib/pg/result.rb
pg-1.1.0.pre20180730144600-x64-mingw32 lib/pg/result.rb