| От | Gunnar R|nning |
|---|---|
| Тема | Re: Re: PostgreSQL and PHP persistent connections |
| Дата | |
| Msg-id | x61yrshcrq.fsf@thor.candleweb.no обсуждение |
| Ответ на | Re: Re: [INTERFACES] PostgreSQL and PHP persistent connections (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Список | pgsql-jdbc |
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Well, I think most connection pools people use are database independent -
> > when it comes to JDBC this is the case at least.
>
> So what platform-indendent method do they use to see that the passed
> connection doesn't have an open transaction or some other setting?
>
None - it is application responsibility to not mess around with the
connections. I usually use the Command pattern from the GoF book to do my
database access. This ensures me that I have one pluggable executor that
can do all the database specific stuff, like proper pre command exec
actions, post command exec actions, exeception handling(Error codes would
be very welcome in pgsql).
Cheers,
Gunnar
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера