dbDriver-methods           package:RSQLite           R Documentation

_S_Q_L_i_t_e _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:

     SQLite 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 `SQLiteDriver' as created by
          `dbDriver'.

     ... any other arguments are passed to the driver `drvName'.

_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:

     `SQLite', `dbConnect', `dbSendQuery', `dbGetQuery', `fetch',
     `dbCommit', `dbGetInfo', `dbListTables', `dbReadTable'.

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

     # create an SQLite instance for capacity of up to 25 simultaneous
     # connections.
     m <- dbDriver("SQLite", max.con = 25)

     con <- dbConnect(m, dbname="sqlite.db")
     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, "user", "password", "dbname")
     dbListTables(pcon)

