openswoole / ext-openswoole

Programmatic server for PHP with async IO, coroutines and fibers
https://openswoole.com
Apache License 2.0
799 stars 50 forks source link

pdo_pgsql support? #357

Open naquad opened 6 months ago

naquad commented 6 months ago

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.

hugoramosandrade commented 1 month ago

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.