dbCommit-methods           package:RSQLite           R Documentation

_D_B_M_S _T_r_a_n_s_a_c_t_i_o_n _M_a_n_a_g_e_m_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     Not yet implemented.

_M_e_t_h_o_d_s:

     _c_o_n_n a `SQLiteConnection' object, as produced by the function 
          `dbConnect'.

     ...  any database-specific arguments.

_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', `dbReadTable'.

_E_x_a_m_p_l_e_s:

     drv <- dbDriver("SQLite")
     con <- dbConnect(drv, dbname = "mySQLite.db")
     rs <- dbSendQuery(con, 
           "delete * from PURGE as p where p.wavelength<0.03")
     if(dbGetInfo(rs, what = "rowsAffected") > 250){
       warning("dubious deletion -- rolling back transaction")
       dbRollback(con)
     }

