setSqlTypeInfo             package:RODBC             R Documentation

_S_p_e_c_i_f_y _a _M_a_p_p_i_n_g _o_f _R _T_y_p_e_s _t_o _D_B_M_S _T_y_p_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Specify or retrieve a mapping of R types to DBMS datatypes.

_U_s_a_g_e:

     setSqlTypeInfo(driver, value)

     getSqlTypeInfo(driver)

_A_r_g_u_m_e_n_t_s:

  driver: A character string specifying the driver as returned by
          'odbcGetInfo'.  Optional for 'getSqlTypeInfo'.

   value: A named list with character values.  This should have names
          '"double"', '"integer"', '"character"' and '"logical"'.

_D_e_t_a_i_l_s:

     This information is used by 'sqlSave' if it creates a table in the
     DBMS.

     The types chosen should be nullable to allow 'NA's to be
     represented.  (Bit and boolean types generally are not.)

_V_a_l_u_e:

     For 'setSqlTypeInfo' none.

     For 'getSqlTypeInfo' with an argument, a named list.  Without an
     argument, a data frame.

_A_u_t_h_o_r(_s):

     Brian Ripley

_S_e_e _A_l_s_o:

     'sqlTypeInfo', 'sqlSave'.

_E_x_a_m_p_l_e_s:

     ## Not run: 
     getSqlTypeInfo()
     getSqlTypeInfo("MySQL")
     setSqlTypeInfo("SQLServer",
                    list(double="float", integer="int",
                         character="varchar(255)", logical="varchar(5)"))
     ## End(Not run)

