Module: DBI::Utils::ConvParam

Defined in:
lib/dbi/utils.rb

Overview

Type converter.

FIXME this really needs to go into DBI::TypeUtil or similar

Class Method Summary collapse

Class Method Details

.conv_param(driver_name, params) ⇒ Object

Wrapper to convert arrays of bound objects via DBI::TypeUtil#convert.



51
52
53
# File 'lib/dbi/utils.rb', line 51

def self.conv_param(driver_name, params)
    params.each { |k, v| params[k] = DBI::TypeUtil.convert(driver_name, v); } 
end