Re: PostgreSQL/PHP: transactions: how-to abstract out? - Mailing list pgsql-general

From Shridhar Daithankar
Subject Re: PostgreSQL/PHP: transactions: how-to abstract out?
Date
Msg-id 3E1EAE6B.20558.31A4177@localhost
Whole thread Raw
In response to PostgreSQL/PHP: transactions: how-to abstract out?  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
List pgsql-general
On 10 Jan 2003 at 14:05, Jean-Christian Imbeault wrote:
> Can someone recommend a way to abstract out my DB layer while still
> being able to use transactions? (persistent connections are not an
> option since there are too many inherent dangers).

Make sql_query() accept a connection as argument. Initiate it someplace else of
course before calling sql_query(). Do validate the connection in sql_query().

Simple

Bye
 Shridhar

--
Afternoon, n.:    That part of the day we spend worrying about how we wasted the
morning.


pgsql-general by date:

Previous
From: Jean-Christian Imbeault
Date:
Subject: PostgreSQL/PHP: transactions: how-to abstract out?
Next
From: David Wheeler
Date:
Subject: ANNOUNCE: Bricolage-Devel 1.5.0