For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2006 > Re: [PEAR] Transactions in mdb2









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] Transactions in mdb2
Lukas Smith

2006-03-22, 7:00 pm

Paul Scott wrote:
> $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.


it does not matter .. eithway works fine ..

btw: you actually only need to set one of the options .. preferably the
second.

regards,
Lukas
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com