cvs: pear /DB_DataObject/tests test.sql test_config.ini
| From: | Alan Knowles | Date: | Tue, 24 Dec 2002 03:59:55 +0000 |
| Subject: | cvs: pear /DB_DataObject/tests test.sql test_config.ini | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7956@lists.php.net to get a copy of this message | ||
alan_k Mon Dec 23 22:59:55 2002 EDT
Added files:
/pear/DB_DataObject/tests test.sql test_config.ini
Log:
more test files for unit testing multiple databases
Index: pear/DB_DataObject/tests/test.sql
+++ pear/DB_DataObject/tests/test.sql
drop database if exists testa;
drop database if exists testb;
create database testa;
create database testb;
use testa;
CREATE TABLE testa (
id int(11) NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY id_2 (id)
) TYPE=MyISAM;
use testb;
CREATE TABLE testb (
id int(11) NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY id_2 (id)
) TYPE=MyISAM;
Index: pear/DB_DataObject/tests/test_config.ini
+++ pear/DB_DataObject/tests/test_config.ini
; test ini file
[DB_DataObject]
;database = mysql://alan::@localhost/test
; the default database dsn see pear spec for more details
schema_location = /home/alan/Projects/pear/DB_DataObject/tests/
;directory where the database ini files are..
class_location = /home/alan/Projects/pear/DB_DataObject/tests/
; directory where the Table classes are..
require_prefix = DataObjects/
; prefix for the 'require statement'
class_prefix = DataObjects_
; Prefix Mapping of table name to PHP Class
;table_example = example
; use database example for table example
table_testa = testa
table_testb = testb
database_testa = mysql://alan:@localhost/testa
database_testb = mysql://alan:@localhost/testb
; use this dsn for database example
ignore_sequence_keys =
; in version 0.10, I fixed the use of sequences for primary keys on tables,
; however it appears that those primary keys dont always use pear sequences.
; so this option was added in 0.11, to use it just do
; ignore_sequence_keys = person,cart,group
; or to ignore all sequences.. (in capitals!)
; ignore_sequence_keys = ALL
; sequence_{table} = name
; by default the sequence name for a table will be the same as the table
; if you wish to change that behaviour, add a configuration option
; sequence_user = user_seq
; the generator settings (optional)
extends_location =
; string added to php file for 'include('DB/DataObject');'
; usefull if you want to add an extra layer - eg. a table level auth scheme..
; optional :: default = DB/DataObject.php
extends =
; string used in Table_XXX extends YYYY {
; usefull if you want to add an extra layer - eg. a table level auth scheme..
; optional :: default = DB_DataObject
generator_class_rewrite =
; alter the extends field when updating a class (defaults to only replacing DB_DataObject)
; use ANY to will replace all extends with either DB_DataObject or the value of extends (above)
; use specific_name to replace 'specific_name' with either DB_DataObject or the value of
extends (above)
debug = 0
; default debugging level
debug_force_updates = 0
; by default debugging will disable database updates, this is the prefered behaviour,
however,
; if this is used in the unit tests to ensure that the updates are done!
production = 0
; this disables all debugging (so you cant set it run time), and should
; improve performace