PHP code example of ikto / pgsql-migration-directories

1. Go to this page and download the library: Download ikto/pgsql-migration-directories library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ikto / pgsql-migration-directories example snippets


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