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)
     }

