[wp-hackers] GSoC Proposal: Multiple RDBMS support

Olexandr Melnyk omelnyk at gmail.com
Sun Mar 30 22:00:19 GMT 2008


Yeah, there is a couple of ORM implementations (Doctrine is one besides what
you mentioned).

It could benefit WordPress if
we used one of those libraries for abstraction, as some people have
different database preferences than MySQL.

On 3/31/08, Duane Storey <duanestorey at gmail.com> wrote:
>
> Look into creole and propel if you go this route, even just to see
> what they've done.  A lot of work has gone into abstracting databases
> in PHP5 already, so I'm sure they made a few mistakes and could give
> some suggestions.
>
> http://propel.phpdb.org/
>
>
> Duane
>
>
> On 3/30/08, Olexandr Melnyk <omelnyk at gmail.com> wrote:
> > Hello,
> >
> >  a little bit late to discuss this, but I would like to apply for this
> year's
> >  GSoC to work on implementing multiple RDBMS support for WordPress. This
> >  could be done by moving all vendor-specific SQL functionality
> >  to classes, which inherit from a common interface (WPDB).
> >  Therefore, all scripts which interact with the database will do it
> >  through an abstracion layer, like follows:
> >
> >
> >  $query = $wpdb->construct_select(array('user_login', 'user_email'),
> >  $wpdb->users, 'username = ?');
> >  $results = $wpdb->query($query, array($username));
> >
> >  What are your thoughts?
> >
> >  --
> >  Sincerely yours,
> >  Olexandr Melnyk <><
> >  http://omelnyk.net/
> >
> >
> >  --
> >  Sincerely yours,
> >  Olexandr Melnyk
> >  http://omelnyk.net/
>
> >  _______________________________________________
> >  wp-hackers mailing list
> >  wp-hackers at lists.automattic.com
> >  http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Sincerely yours,
Olexandr Melnyk
http://omelnyk.net/


More information about the wp-hackers mailing list