Re: PDO and PostgreSQL's LISTEN/NOTIFY
| From: | David J N Begley | Date: | Wed, 04 Oct 2006 04:04:16 +0000 |
| Subject: | Re: PDO and PostgreSQL's LISTEN/NOTIFY | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4212@lists.php.net to get a copy of this message | ||
On Tue, 3 Oct 2006, Pedram Nimreezi wrote:
> omg +1!!
>
> On 10/3/06, Ilia Alshanetsky <ilia@prohost.org> wrote:
> > There is currently no plans to add support for this, so you are willing to
> > write a patch it'd would be most welcome.
Don't get too excited - I haven't hacked PHP internals in a couple of years
(and never PDO) so I can't guarantee a perfect product, but at least it'll be
a starting point from which we can create a useable feature.
So you're aware, all I'm doing at present is taking the existing
pg_get_notify() function from the old API and transplanting it into the PDO
driver as PDO::pgsqlGetNotify([int result_type]).
I'm currently going through each line, modifying them to better suit the PDO
style/support functions (eg., obtaining database handle). Then I'll need to
see if it compiles/works...
When I have something near completion I'll post to the list.
Cheers..