Re: MDB2 over DB

From: Date: Fri, 01 Sep 2006 17:42:45 +0000
Subject: Re: MDB2 over DB
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25048@lists.php.net to get a copy of this message
Chris Boget wrote:
It's been recommend that if you are starting with PEAR and/or will be using the database abstraction classes, you should use MDB2 instead of DB. That's well and fine. But does MDB2 have a functionality similar to DB's createTables.php? I looked around but wasn't able to find anything like that. Alternatively, is it possible to use DB_DataObject with MDB2?
"DB's createTables.php"? I am not aware of any createTable.php being part of PEAR::DB Anyways, MDB2 has an entire module devoted to schema management: http://pear.php.net/package/MDB2/docs/latest/MDB2/MDB2_Driver_Manager_Common.html This manual entry explains how to load and use modules in MDB2: http://pear.php.net/manual/en/package.database.mdb2.intro-module.php And yes MDB2 can be used in DB_DataObject in place of DB. regards, Lukas

« previous php.pear.general (#25048) next »