[TYPO3] Is it safe to use DBAL?
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon Apr 3 11:50:10 CEST 2006
Martin Kindler schrieb:
>
> Currently I only use MySQL, but this might change. Therefore the idea of
> using DBAL (with its "native" driver for the moment).
> But if it is easy enough to later switch to DBAL when it is needed (only
> fulfilling my administrator role, but not troubling my extension writer
> role) I'll start without it.
Don't use the mysql_* functions!
Even if you don't have DBAL isntalled always use $GLOBALS['TYPO3_DB'].
Try to use APIs instead of direct SQL queries.
If you cannot use one, try query generating functions.
If you need special queries, try to use portable DB features/functions.
If you follow this advice you can install and use TYPO3 with Mysql and
switch to DBAl later.
Masi
PS: You don't need DBAL to access other DBs from your own extensions.
More information about the TYPO3-english
mailing list