sdfImportDBI            package:SQLiteDF            R Documentation

_I_m_p_o_r_t _D_a_t_a _t_o _a_n _S_Q_L_i_t_e _D_a_t_a _F_r_a_m_e

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

     Import data from a DBMS to a sqlite.data.frame using DBI.

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

     sdfImportDBI(con, sql, batch.size = 2048, rownames = "row_names", iname = NULL)

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

     con: a DBI connection object 

     sql: a select statement to retrieve the data to be imported

batch.size: the number of rows to be fetched from the connection at a
          time

rownames: a string or index specifying the column in the result of the
          select statement to be used as the row.names of the SDF

   iname: the internal name of the created SDF

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

     This function just sends the query to the connection
     ('DBI:::dbSendQuery') and then loops over the result set of the
     select statement ('DBI:::fetch').

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

     The SDF containing the imported data.

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

     Miguel A. R. Manese

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

     'dbSendQuery' 'fetch' 'dbReadTable'

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

     ## Not run: 
     conn <- dbConnect("MySQL", group = "vitalAnalysis")
     fuel_frame.sdf <- sdfImportDBI(conn, "select * from fuel_frame", iname="fuel_frame")
     ## End(Not run)

