PHP Classes

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

Recommend this page to a friend!
  Classes of Asad Ullah   PHP Google Authenticator with CodeIgniter   tests/mocks/database/config/pdo/sqlite.php   Download  
File: tests/mocks/database/config/pdo/sqlite.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: 5 years ago
Size: 865 bytes
 

Contents

Class file image Download
<?php

return array(

   
// Typical Database configuration
   
'pdo/sqlite' => array(
       
'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite',
       
'hostname' => 'localhost',
       
'username' => 'sqlite',
       
'password' => 'sqlite',
       
'database' => 'sqlite',
       
'dbdriver' => 'pdo',
       
'subdriver' => 'sqlite'
   
),

   
// Database configuration with failover
   
'pdo/sqlite_failover' => array(
       
'dsn' => 'sqlite:not_exists.sqlite',
       
'hostname' => 'localhost',
       
'username' => 'sqlite',
       
'password' => 'sqlite',
       
'database' => 'sqlite',
       
'dbdriver' => 'pdo',
       
'subdriver' => 'sqlite',
       
'failover' => array(
            array(
               
'dsn' => 'sqlite:/'.realpath(__DIR__.'/../..').'/ci_test.sqlite',
               
'hostname' => 'localhost',
               
'username' => 'sqlite',
               
'password' => 'sqlite',
               
'database' => 'sqlite',
               
'dbdriver' => 'pdo',
               
'subdriver' => 'sqlite'
           
)
        )
    )
);