[Cppcms-users] Continued discussion on bug 3536452 - transaction in progress
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-06-24 05:57:19
|
I didn't want to re-open the bug again, but there's a still an idea i'd like to discuss. Artyom mentioned creating a "custom" transaction class to support something like BEGIN {EXCLUSIVE|IMMEDIATE} An idea would be to add a default constructor to cppcdb::transaction so that users can inherit from it instead of creating standalone transaction classes. The current constructor cppdb::transaction(cppdb::session&) calls begin() within itself so it cannot be modified. Maybe we could also add a cppdb::transaction_base interface class with virtual commit() = 0 and rollback() = 0 functions. If Artyom thinks this might be useful, I can create a patch to support such functionality. Petr |