ikto/pgsql-migration-directories

The tool for installing/removing/upgrading/downgrading PgSQL schemas (connection adapter for PgSQL PHP module)

v1.0.0 2021-06-05 11:51 UTC

This package is not auto-updated.

Last update: 2025-06-16 05:32:47 UTC


README

A connection adapter for Pg Migration Directories based on pgsql PHP extension.

Requirements (environment)

How to use

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