PHP Classes
elePHPant
Icontem

File: driver_test_config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Manuel Lemos  >  Metabase  >  driver_test_config.php  >  Download  
File: driver_test_config.php
Role: Configuration script
Content type: text/plain
Description: Driver class conformance test configuration script.
Class: Metabase
PHP Database abstraction layer RDBMS independent
Author: By
Last change: Added support to MySQL using the MySQLi extension.
Date: 16 days ago
Size: 2,840 bytes
 

Contents

Class file image Download
<?php
/*
 * driver_test_configuration.php
 *
 * @(#) $Header: /opt2/ena/metal/metabase/driver_test_config.php,v 1.12 2015/04/02 05:20:53 mlemos Exp $
 *
 */

   
$driver_arguments["Type"]="mysql";
   
$driver_arguments["CaptureDebug"]=1;
   
$driver_arguments["Persistent"]=0;
   
$driver_arguments["LogLineBreak"]="\n";
   
$driver_arguments["AllowNestedTransactions"]=1;
   
$driver_arguments["Options"]=array(
    );

    switch(
$driver_arguments["Type"])
    {
        case
"ibase":
           
$driver_arguments["Host"]="";
           
$driver_arguments["Options"]=array(
               
"DBAUser"=>"sysdba",
               
"DBAPassword"=>"masterkey",
               
"DatabasePath"=>"/opt/interbase/",
               
"DatabaseExtension"=>".gdb"
           
);
           
$database_variables["create"]="0";
            break;
        case
"ifx":
           
$driver_arguments["Host"]="demo_on";
           
$driver_arguments["User"]="webuser";
           
$driver_arguments["Password"]="webuser_password";
           
$driver_arguments["Options"]=array(
               
"DBAUser"=>"informix",
               
"DBAPassword"=>"informix_pasword",
               
"Use8ByteIntegers"=>1,
               
"Logging"=>"Unbuffered"
           
);
            break;
        case
"msql":
            break;
        case
"mssql":
           
$driver_arguments["User"]="sa";
           
$driver_arguments["Password"]="";
           
$driver_arguments["Options"]=array(
               
"DatabaseDevice"=>"DEFAULT",
               
"DatabaseSize"=>"10"
           
);
            break;
        case
"mysql":
           
$driver_arguments["User"]="root";
           
$driver_arguments["Options"]["UseTransactions"]=1;
           
$driver_arguments["Options"]["DefaultTableType"]="INNODB";
           
$driver_arguments["Options"]["Port"]="/var/lib/mysql/mysql.sock";
            break;
        case
"mysqli":
           
$driver_arguments["User"]="root";
           
$driver_arguments["Options"]["UseTransactions"]=1;
           
$driver_arguments["Options"]["DefaultTableType"]="INNODB";
           
$driver_arguments["Options"]["Socket"]="/var/lib/mysql/mysql.sock";
            break;
        case
"oci":
           
$driver_arguments["User"]="drivertest";
           
$driver_arguments["Password"]="drivertest";
           
$driver_arguments["Options"]=array(
               
"SID"=>"dboracle",
               
"HOME"=>"/home/oracle/u01",
               
"DBAUser"=>"SYS",
               
"DBAPassword"=>"change_on_install"
           
);
            break;
        case
"odbc":
            
$driver_arguments["User"]="webuser";
           
$driver_arguments["Password"]="webuser_password";
           
$driver_arguments["Options"]=array(
               
"DBADSN"=>"dbadsn",
               
"DBAUser"=>"dbauser",
               
"DBAPassword"=>"dbapassword",
               
"UseDefaultValues"=>0,
               
"UseDecimalScale"=>0,
               
"UseTransactions"=>0
           
);
           
$database_variables["create"]="0";
           
$database_variables["name"]="userdsn";
            break;
        case
"odbc-msaccess":
           
$driver_arguments["User"]="webuser";
           
$driver_arguments["Password"]="webuser_password";
           
$driver_arguments["Options"]=array(
               
"DBADSN"=>"dbadsn",
               
"DBAUser"=>"dbauser",
               
"DBAPassword"=>"dbapassword"
           
);
           
$database_variables["create"]="0";
           
$database_variables["name"]="userdsn";
            break;
        case
"pgsql":
           
$driver_arguments["User"]="root";
            break;
    }
?>