Method: PG::Result#map_types!

Defined in:
lib/pg/result.rb

#map_types!(type_map) ⇒ Object

Apply a type map for all value retrieving methods.

type_map: a PG::TypeMap instance.

This method is equal to #type_map= , but returns self, so that calls can be chained.

See also PG::BasicTypeMapForResults



16
17
18
19
# File 'lib/pg/result.rb', line 16

def map_types!(type_map)
	self.type_map = type_map
	return self
end