Re: PostgreSQL/PHP: transactions: how-to abstract out?

From: "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL/PHP: transactions: how-to abstract out?
Date: 2003-01-10 05:58:43
Message-ID: 3E1EAE6B.20558.31A4177@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Wheeler 2003-01-10 06:59:07 ANNOUNCE: Bricolage-Devel 1.5.0
Previous Message Jean-Christian Imbeault 2003-01-10 05:05:14 PostgreSQL/PHP: transactions: how-to abstract out?