Definition
/**
* Create a PostgreSQL client using ext-pgsql.
*
* The client connects immediately and is ready to execute queries.
* For object mapping, provide a RowMapper (use pgsql_mapper() for the default).
*
* @param Client\ConnectionParameters $params Connection parameters
* @param null|ValueConverters $valueConverters Custom type converters (optional)
* @param null|Client\RowMapper $mapper Row mapper for object hydration (optional)
*
* @throws ConnectionException If connection fails
*
* @example
* // Basic client
* $client = pgsql_client(pgsql_connection('host=localhost dbname=mydb'));
*
* // With object mapping
* $client = pgsql_client(
* pgsql_connection('host=localhost dbname=mydb'),
* mapper: pgsql_mapper(),
* );
*/
pgsql_client(ConnectionParameters $params, ?ValueConverters $valueConverters, ?RowMapper $mapper) : Client