PHP Classes

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

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

Contents

Class file image Download
<?php

return array(

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

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