[Typo3-dev] DBAL Drivers
Martin Kutschker
martin.t.kutschker at n0spam.blackbox.net
Tue Mar 15 10:49:55 CET 2005
"Andreas Otto" <ao-lists at php4win.de> schrieb im Newsbeitrag
news:mailman.1.1110878992.28654.typo3-dev at lists.netfielders.de...
> Hi Florian,
>
> On Dienstag, 15. März 2005 09:27, Florian Schaeffer wrote in typo3.dev:
>> AFAIK DBAL is already part of the core and is using ADODb-Package
>> written in PHP which is already capable of connection to most of the
>> DB-Servers (MSSQL, MySQL, Oracle, MS Access and DB2 are the one I use
>> it for in other projects)
>
> From the ChangeLog of TYPO3core:
> 2005-01-02 Kasper Skårhøj,,, <kasper at typo3.com>
>
> * Added Karsten D.s patches for DBAL.
>
> So, it is implemented in the core. However - I could not find any hint
> that ADODB is included already.
>
> It is left up to Karsten to shed some light on this issue.
AFAIK - good enough or not - it is like this:
The core and all compliant extensions use t3lib_db.php (ie
$GLOBALS[TYPO3_DB]) for all database operations. This class provides an
"interface" for DB access and implements this "interface" with Mysql. The
DBAL extension changes this class (probably with an XCLASS) to use ADOdb
instead of the Mysql API.
Please read the comments found in t3lib_db.php!
The only problem I see with that approach is that you have to have TYPO3
running before you can install the DBAL extension. But perhaps it is
possible to install DBAL by moving it to the extension dir and updating
localconf.php manually prior to the TYPO3 installation process. Maybe our
package hero Michael Stucki will make a DBAL bundled TYPO3-zip.
Masi
More information about the TYPO3-dev
mailing list