flow php

UNIFIED DATA PROCESSING FRAMEWORK

composer require flow-php/etl ~0.29.0

ChangelogRelease Cycle

play Try Flow Online

elephant
extract

Extracts

Read from various data sources.

arrow
transform

Transforms

Shape and optimize for your needs.

arrow
load

Loads

Store and secure in one of many available data sinks.


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

Contributors

Join us on GitHub external resource
scroll back to top