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

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: PostgreSQL/PHP: transactions: how-to abstract out?
Дата
Msg-id 3E1EAE6B.20558.31A4177@localhost
обсуждение исходный текст
Ответ на PostgreSQL/PHP: transactions: how-to abstract out?  (Jean-Christian Imbeault <jc@mega-bucks.co.jp>)
Список 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 по дате отправления:

Предыдущее
От: Jean-Christian Imbeault
Дата:
Сообщение: PostgreSQL/PHP: transactions: how-to abstract out?
Следующее
От: David Wheeler
Дата:
Сообщение: ANNOUNCE: Bricolage-Devel 1.5.0