Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjXiN-00068U-Fe for pgsql-php@arkaria.postgresql.org; Thu, 21 Nov 2013 17:06:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VjXiM-0000Jk-Uq for pgsql-php@arkaria.postgresql.org; Thu, 21 Nov 2013 17:06:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjXiL-0000IF-MM for pgsql-php@postgresql.org; Thu, 21 Nov 2013 17:06:49 +0000 Received: from smtp-vbr2.xs4all.nl ([194.109.24.22]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjXiE-0004LG-LF for pgsql-php@postgresql.org; Thu, 21 Nov 2013 17:06:48 +0000 Received: from [10.0.0.19] (dhcp-077-249-229-020.chello.nl [77.249.229.20]) (authenticated bits=0) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id rALH6cq1090567 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 21 Nov 2013 18:06:39 +0100 (CET) (envelope-from vinny@xs4all.nl) Message-ID: <528E3D9E.3000900@xs4all.nl> Date: Thu, 21 Nov 2013 18:06:38 +0100 From: Vincent User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: pgsql-php@postgresql.org Subject: Re: Open source project using php PostgreSQL functions? References: <528E3841.30007@wykids.org> In-Reply-To: <528E3841.30007@wykids.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-php Precedence: bulk Sender: pgsql-php-owner@postgresql.org On 21-11-13 17:43, Jeff Ross wrote: > Hi all, > > I'm looking at moving some code away from the long deprecated PEAR::DB > but I want to move to the standard php Postgresql functions and not > another database abstraction layer like MDB2 or ADODB or even PDO. > This specific project will never use anything but PostgreSQL as its > database. > > Does anyone know of an open source php based project that I might look > through to see some sample code a little more complex than the > examples in the php documentation? > > Thanks, > > Jeff Ross > > > PDO is pretty much standard PHP these days, allthough I don't like it much myself. Why not write a simple class that does the database access for you? All you really need is a method that executes the query and either returns the result or throws an exception when something goes wrong. Anything ready-made is going to be a DAL, because that's what works best and it's easier to maintain. -- Sent via pgsql-php mailing list (pgsql-php@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-php