Message106683
I have a use case where I'd like to be able to check whether or not there is an uncommitted transaction. The use case is a REPL database editor. If the user issues the 'save' command a commit is done. When they quit the application, I'd like to be able to prompt them with a 'save or discard' if and only if they have made changes since the last save. Exposing the connection's inTransaction attribute would allow me to do this. The attached patch does this as a read only attribute named in_transaction. I'll add unit tests if this idea isn't rejected. |
|
Date |
User |
Action |
Args |
2010-05-28 17:54:09 | r.david.murray | set | recipients:
+ r.david.murray, ghaering |
2010-05-28 17:54:09 | r.david.murray | set | messageid: <1275069249.63.0.318211846232.issue8845@psf.upfronthosting.co.za> |
2010-05-28 17:54:08 | r.david.murray | link | issue8845 messages |
2010-05-28 17:54:07 | r.david.murray | create | |
|