A connection adapter for Pg Migration Directories based on pgsql PHP extension.
- PHP 7.1 or higher
- pgsql PHP extension
- Pg Migration Directories library
use IKTO\PgSqlMigrationDirectories\Adapter\PgSqlConnectionAdapter;
// Connecting to the database.
$dbh = pg_connect('host=127.0.0.1 port=5432 dbname=pgi_test user=postgres password=postgres', PGSQL_CONNECT_FORCE_NEW);
$connection_adapter = new PgSqlConnectionAdapter($dbh);
// ... and the pass connection adapter to managed db object