Sha256: bfe7a0898b7103db6e0f04b445793d526f2a4094a6600cd822557b2ad3694ebe

Contents?: true

Size: 651 Bytes

Versions: 11

Compression:

Stored size: 651 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

# :stopdoc:
# Backward-compatible alias
PGresult = PG::Result

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/pg-0.20.0/lib/pg/result.rb
pg-0.20.0-x86-mingw32 lib/pg/result.rb
pg-0.20.0-x64-mingw32 lib/pg/result.rb
pg-0.20.0 lib/pg/result.rb
pg-0.19.1.pre20170124220800-x64-mingw32 lib/pg/result.rb
pg-0.19.1.pre20170124220800-x86-mingw32 lib/pg/result.rb
pg-0.19.1.pre20170124220800 lib/pg/result.rb
pg-0.19.1.pre20170115074000-x64-mingw32 lib/pg/result.rb
pg-0.19.1.pre20170115074000-x86-mingw32 lib/pg/result.rb
pg-0.19.1.pre20170115074000 lib/pg/result.rb
pg-0.19.0.pre20170115074000 lib/pg/result.rb