{"repo":"amphp/postgres","free":true,"listed":false,"github":"https://github.com/amphp/postgres","clone":"git clone https://github.com/amphp/postgres.git","description":"Async Postgres client for PHP based on Amp.","language":"PHP","stars":106,"topics":["postgres","postgresql","amphp","async","php"],"license":"MIT","category":"databases-storage","readme_excerpt":"amphp/postgres AMPHP is a collection of event-driven libraries for PHP designed with fibers and concurrency in mind. amphp/postgres is an asynchronous Postgres client. The library implements concurrent querying by transparently distributing queries across a scalable pool of available connections. Either ext-pgsql (bundled with PHP) or pecl-pq are required. Features - Exposes a non-blocking API for issuing multiple Postgres queries concurrently - Transparent connection pooling to overcome Postgres' fundamentally synchronous connection protocol - Support for parameterized prepared statements - Nested transactions with commit and rollback event hooks - Unbuffered results to reduce memory usage for large result sets - Support for sending and receiving notifications Installation This package can be installed as a Composer dependency. Requirements - PHP 8.1+ - ext-pgsql or pecl-pq Note: pecl-ev is not compatible with ext-pgsql. If you wish to use pecl-ev for the event loop backend, you must use pecl-pq. Documentation & Examples Prepared statements and parameterized queries support named placeholders, as well as ? and standard numeric (i.e. $1 ) placeholders. Row values are cast to their corresponding PHP types. For example, integer columns will be an int in the result row array. More examples can be found in the examples directory. Versioning amphp/postgres follows the semver semantic versioning specification like all other amphp packages. Security If you discover any security rela","default_branch":null,"files":null,"tree":[],"storefront":"/r/amphp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/amphp/postgres/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}