On Tue, Nov 20, 2012 at 1:02 PM, Markus Hoenicka <markus.hoeni...@mhoenicka.de> wrote: > In fact, we already have a (not well documented) infrastructure for things > like this in place. Every driver keeps a list of boolean "capabilities" > which is merely a key-value list of whatever we think is useful or > necessary. To date, only the "safe_dlclose" capability seems to be used, see > e.g. dbd_initialize in libdbi-drivers/drivers/mysql/dbd_mysql.c. There is an > internal function _dbd_register_driver_cap() which can be used by the > drivers to announce a capability. And there is a public function > dbi_driver_cap_get() which allows applications to query the list of > capabilities at runtime. So all we'd have to do is modify the drivers and > have them add a "transaction_support" capability set to 1 for those who > support transactions.
ok, that makes sense and is excellent to have! >> For TX support, I'd expect calls for >> >> - begin transaction >> - commit >> - rollback >> >> that's it, so all in all 4 calls. Would you agree to that? > > > yes, except that we don't need the drvrTXSupport() function as we can use > dbi_driver_cap_get() instead. I'll see if I can dig a bit into the code within the next couple of days. Thanks! Rainer ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ libdbi-users mailing list libdbi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libdbi-users