dbReconnect               package:Rdbi               R Documentation

_R_e_o_p_e_n_s _a _c_o_n_n_e_c_t_i_o_n _t_o _a _d_a_t_a_b_a_s_e

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

     'dbReconnect' a generic function that, when called with a valid
     connection object, reopens the connection to the database backend.

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

     dbReconnect(conn)

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

    conn: A database connection object.

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

     A database connection object contains the necessary information to
     re-establish a connection.  Thus, a database connection object can
     be saved across R sessions and reconnected later.  If I can
     convince the R developers to add a generic function that is always
     called when objects are restored, then it will be possible to have
     connections persist across R sessions.

     Note that packages that implement the Rdbi interface do not need
     to provide a 'dbReconnect' function as long as the connection
     object returned by 'dbConnect' inherits from "Rdbi.conn" and has
     attributes described in the documentation for 'dbConnect'.
     'dbReconnect.Rdbi.conn' can reconnect the object.  If
     'dbReconnect.Rdbi.conn' is not general enough, the package can
     provide its own method.

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

     A database connection object.

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

     Timothy H. Keitt

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

     <URL: http://rdbi.sourceforge.net/>

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

     'dbConnect', 'dbDisconnect', methods, 'class'

