class PG::TypeMapByMriType

This type map casts values based on the Ruby object type code of the given value to be sent.

This type map is usable for type casting query bind parameters and COPY data for PG::Connection#put_copy_data . Therefore only encoders might be assigned by the []= method.

Note : This type map is not portable across Ruby implementations and is less flexible than PG::TypeMapByClass. It is kept only for performance comparisons, but PG::TypeMapByClass proved to be equally fast in almost all cases.