X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (mx2.hub.org [200.46.204.254]) by postgresql.org (Postfix) with ESMTP id 7F03111F6D8D for ; Fri, 21 Apr 2006 12:46:25 -0300 (ADT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Score: -2.022 X-Spam-Level: X-Spam-Status: No, score=-2.022 required=5 tests=[AWL=0.442, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] Received: from postgresql.org ([200.46.204.71]) by localhost (mx2.hub.org [200.46.204.254]) (amavisd-new, port 10024) with ESMTP id aQOv4pDVTTcN for ; Fri, 21 Apr 2006 12:46:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from projects.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id BEB2511F6D3D for ; Fri, 21 Apr 2006 12:46:14 -0300 (ADT) Received: from [192.168.15.50] (or-67-76-146-141.sta.sprint-hsd.net [67.76.146.141]) (authenticated bits=0) by projects.commandprompt.com (8.13.4/8.13.4) with ESMTP id k3LFkDdK001288; Fri, 21 Apr 2006 08:46:13 -0700 Message-ID: <4448FE43.8040908@commandprompt.com> Date: Fri, 21 Apr 2006 08:46:11 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mail/News 1.5 (X11/20060309) MIME-Version: 1.0 To: Mitch Pirtle CC: pgsql-php@postgresql.org Subject: Re: Object/relational mappers for PHP? References: <330532b60604210749n79408d66ha726aa90be7e109f@mail.gmail.com> In-Reply-To: <330532b60604210749n79408d66ha726aa90be7e109f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (projects.commandprompt.com [192.168.2.159]); Fri, 21 Apr 2006 08:46:14 -0700 (PDT) X-Archive-Number: 200604/17 X-Sequence-Number: 3487 Mitch Pirtle wrote: > Hi gang, > > We finally have the underpinnings for database drivers in Joomla 1.5, > and now are tackling the thorny issue of all those MySQL-specific SQL > statements littering the core. This might help: http://wiki.cc/php/Object_Relational_Mapping Joshua D. Drake > > One solution of course is to use Christopher Kings-Lynne's(sp?) MySQL > compatibility goodies, but we are also looking to solve this riddle at > the application layer so we can support more databases in the future. > > We have implemented some basic SQL generating methods in our database > class (to manage LIMIT and LEFT JOIN differences, for example) but are > primarily relying on ANSI SQL to get around most issues. > > I'd like to know if anyone here is already working on a class to > generate SQL at the object level, as opposed to (re)inventing your own > API to generate queries for each database engine. > > Anybody else working on something? > > -- > Mitch Pirtle > Joomla! Core Developer > Open Source Matters > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/