ext-openswoole icon indicating copy to clipboard operation
ext-openswoole copied to clipboard

pdo_pgsql support?

Open naquad opened this issue 1 year ago • 1 comments

Hello,

Is there a plan to support pdo_pgsql?

PostgreSQL is widely adopted, just as interacting with it using pdo_pgsql. Porting the code from PDO to OpenSwoole\Coroutine\PostgreSQL is extremely hard if possible at all (think redoing the whole Laravel's DB subsystem), quick hacks like imitating PDO using the OpenSwoole\Coroutine\PostgreSQL are fragile and explode in random places, so the feature is highly desirable.

Thank you.

naquad avatar Feb 17 '24 04:02 naquad

I'm also interested in support pdo_pgsql, a I have a projecet that connect to postgres db, and the class OpenSwoole\Coroutine\PostgreSQL have a bug on 'prepare' method. @naquad I see this PR https://github.com/openswoole/ext-openswoole/pull/307 - there are a fix of this bug. I compiled and test on my project and that work perfectly.

hugoramosandrade avatar Aug 07 '24 11:08 hugoramosandrade