dbListTables-methods           package:DBI           R Documentation

_L_i_s_t _i_t_e_m_s _f_r_o_m _a _r_e_m_o_t_e _D_B_M_S _a_n_d _f_r_o_m _o_b_j_e_c_t_s _t_h_a_t _i_m_p_l_e_m_e_n_t
_t_h_e _d_a_t_a_b_a_s_e _i_n_t_e_r_f_a_c_e _D_B_I.

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

     List remote tables, fields of a remote table, opened connections
     and pending statements in a connection.

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

       dbListTables(conn, ...)
       dbListFields(conn, name, ...)
       dbListConnections(drv, ...)
       dbListResults(conn, ...)

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

     drv: a driver object (e.g., 'ODBC', 'Oracle')

    conn: a connection object

    name: a character string with the name of the remote table.

     ...: optional arguments for the actual driver implementation.

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

     'dbListTables' returns a character vector with the names of the
     tables in the remote database associated with the connection in 
     'conn' object.

     'dbListFields' returns a character vector with the names of the
     fields of the 'res' result object (it must be a query statement).

     'dbListConnections' returns a list of all currently open
     connections on driver 'drv'.  Drivers that implement single
     connections would return the one single connection object.

     'dbListResults' returns a list of objects for all pending results 
     (statements) on the 'conn' connection.

_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://developer.r-project.org/db>.

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

     'dbGetInfo', 'dbColumnInfo', 'dbDriver', 'dbConnect',
     'dbSendQuery'

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

     ## Not run: 
     drv <- dbDriver("RSQLite")
     # after working awhile...
     for(con in dbListConnections(odbc)){
        dbGetStatement(dbListResults(con))
     }
     ## End(Not run)

