Re: Database Abstraction Class
| From: | Eric Butera | Date: | Sat, 07 Mar 2009 22:22:28 +0000 |
| Subject: | Re: Database Abstraction Class | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-289568@lists.php.net to get a copy of this message | ||
On Sat, Mar 7, 2009 at 5:20 PM, Nathan Rixham <nrixham@gmail.com> wrote:
> Eric Butera wrote:
>>
>> On Sat, Mar 7, 2009 at 5:07 PM, Paul M Foster <paulf@quillandmouse.com>
>> wrote:
>>>
>>> On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote:
>>>
>>>
>>> <snip>
>>>
>>>> PDO. :) Anything else is a waste of cpu cycles.
>>>
>>> I've looked into PDO, and I just didn't find it as feature-rich as the
>>> "native" (non-OO) function assortment for database types like MySQL and
>>> PostgreSQL. Can PDO be extended?
>>>
>>> In any case, I just wrote my own driver class for each DB type, and then
>>> a function which instantiates the appropriate driver with the
>>> appropriate parameters.
>>>
>>> Paul
>>>
>>> --
>>> Paul M. Foster
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>
>> Show me FETCH_INTO and FETCH_CLASS elsewhere. :D What exactly is
>> missing for you?
>>
>
> try using those two with private variables using setters or magic methods to
> set and you'll see :p
>
> nath
>
Don't have to worry about it if it's a value object.
--
http://www.voom.me | EFnet: #voom