Re: [PDO] Asynchronous requests
[email protected] (Johannes Schlüter) Tue, 03 Nov 2009 14:08:43 +0100
| Newsgroups | php.pdo |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <1257253723.1807.161.camel@guybrush> |
On Tue, 2009-11-03 at 13:52 +0100, Lukas Kahwe Smith wrote: > On 03.11.2009, at 11:49, Johannes Schlüter wrote: > > > And even then PDO should be generic and do stuff the same way with as > > many drivers as possible. That's the point of abstraction. Different > > databases, client-server protocols, client libraries, ... offer > > different functionality which sometimes can't be emulated properly. > > The > > aim of abstraction is that I can - as simple as possible - switch over > > from one database to another, now consider having use async switching > > from psotgresql to sqlite (for whatever reason) - you have to change > > the > > whole architecture[1]. > > > I am still not clear what you mean here. Do you think its impossible > to abstract async? or do you want to limit PDO to functionality that > is available on all drivers? I don't know enough about other databases to judge this. But if only MySQL and PostgreSQL support it and then maybe in very different ways I see little sense in having it in an abstraction layer as emulating this (in a more or less sane way) is impossible. Having it optional with the given structure is stupid. Having it optional with another structure might probably be ok, but then it should be similar at least for databases which support it and not be implemented completely different for each and every. johannes