PHP Classes

File: tests/mocks/database/config/pdo/pgsql.php

Recommend this page to a friend!
  Packages of Asad Ullah   PHP Google Authenticator with CodeIgniter   tests/mocks/database/config/pdo/pgsql.php   Download  
File: tests/mocks/database/config/pdo/pgsql.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Google Authenticator with CodeIgniter
2fa Google Authenticator implementation
Author: By
Last change:
Date: 8 years ago
Size: 833 bytes
 

 

Contents

Class file image Download
<?php

return array(

    // Typical Database configuration
    'pdo/pgsql' => array(
        'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;',
        'hostname' => 'localhost',
        'username' => 'postgres',
        'password' => '',
        'database' => 'ci_test',
        'dbdriver' => 'pdo',
        'subdriver' => 'pgsql'
    ),

    // Database configuration with failover
    'pdo/pgsql_failover' => array(
        'dsn' => '',
        'hostname' => 'localhost',
        'username' => 'not_travis',
        'password' => 'wrong password',
        'database' => 'not_ci_test',
        'dbdriver' => 'pdo',
        'subdriver' => 'pgsql',
        'failover' => array(
            array(
                'dsn' => 'pgsql:host=localhost;port=5432;dbname=ci_test;',
                'hostname' => 'localhost',
                'username' => 'postgres',
                'password' => '',
                'database' => 'ci_test',
                'dbdriver' => 'pdo',
                'subdriver' => 'pgsql'
            )
        )
    )
);