Re: Transactions in mdb2
| From: | Paul Scott | Date: | Wed, 22 Mar 2006 15:10:17 +0000 |
| Subject: | Re: Transactions in mdb2 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23387@lists.php.net to get a copy of this message | ||
$options['use_transactions'] = true;
$options['default_table_type'] = 'InnoDB';
$mdb2 = MDB2::factory($dsn, $options);
Is it better to set the options and pass them directly to the factory
method, or to use the setOption method? I ask this, mainly because we
connect to a number of data sources, and it makes it easier to
dynamically set the options using setOption to a global db object.
--Paul