Drew Vogel wrote:
>
> "Too bad this isn't
> C++, because then I could just subclass std::list<mysqlpp::Query>.
I can't say I'm wild about that idea.
First, that implies multiqueries, which return results in a harder to
handle way than regular queries. (See examples/multiquery.cpp.)
Second, there's the is-a issue: a transaction set is not a special kind
of query. It's more of a "flag" temporarily set on a per-connection
basis, and later cleared. I could see someone wanting to implement
transactions by extending Connection for this reason. But I think the
separate Transaction class is cleaner.
> I'm mentioning this, not to criticize your efforts, but because I will
> be implementing this in the semi-near future. Would anyone on the list
> be interested in it once it's done?
Go ahead and post it to the list. It's more productive to argue over
working code than design points. But before you start writing code, why
don't you check out the v2.1 branch and see what you think of the new
Transaction class? If you don't want to play with svn, 2.1 alpha 4
should be out within a few days, and it will include this.