dbDriver-methods           package:RMySQL           R Documentation

_M_y_S_Q_L _i_m_p_l_e_m_e_n_t_a_t_i_o_n _o_f _t_h_e _D_a_t_a_b_a_s_e _I_n_t_e_r_f_a_c_e (_D_B_I) _c_l_a_s_s_e_s 
_a_n_d _d_r_i_v_e_r_s

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

     MySQL driver initialization and closing

_M_e_t_h_o_d_s:

     _d_r_v_N_a_m_e character name of the driver to instantiate.

     _d_r_v an object that inherits from 'MySQLDriver' as created by
          'dbDriver'.

     _m_a_x._c_o_n optional integer requesting the maximum number of
          simultanous connections (may be up to 100).

     _f_e_t_c_h._d_e_f_a_u_l_t._r_e_c default number of records to retrieve per fetch.
          Default is 500.  This may be overridden in calls to 'fetch'
          with the 'n=' argument.

     _f_o_r_c_e._r_e_l_o_a_d optional logical used to force re-loading or
          recomputing the size of the connection table. Default is
          'FALSE'.

     ... currently unused.

_R_e_f_e_r_e_n_c_e_s:

     See the Database Interface definition document 'DBI.pdf' in the
     base directory of this package or <URL:
     http://stat.bell-labs.com/RS-DBI>.

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

     'MySQL', 'dbConnect', 'dbSendQuery', 'dbGetQuery', 'fetch',
     'dbCommit', 'dbGetInfo', 'dbListTables', 'dbReadTable'.

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

     ## Not run: 
     # create an MySQL instance and set 10000 of rows per fetch.
     m <- dbDriver("MySQL", fetch.default.records=10000)

     con <- dbConnect(m, username="usr", password = "pwd",
                dbname = "iptraffic")
     rs <- dbSubmitQuery(con, 
              "select * from HTTP_ACCESS where IP_ADDRESS = '127.0.0.1'")
     df <- fetch(rs, n = 50)
     df2 <- fetch(rs, n = -1)
     dbClearResult(rs)

     pcon <- dbConnect(p, group = "wireless")
     dbListTables(pcon)
     ## End(Not run)

