|
Navigation: Programming Cookbook > Database Connectivity > Transactions > Read-Only Transactions |
![]() ![]()
|
On occasion, you may find it appropriate to start a read-only transaction. This can be done by sending #beginTxn (rather than #beginRWTxn) to your DBConnection. The result is that, no matter whether you perform a #commitTxn or a #rollbackTxn, no operations are ever committed to the database. Read-only transactions are useful when you wish to ensure that no modifications to a database can possibly be made.