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)

