[TYPO3] Is it safe to use DBAL?

Martin Kindler kindlerm at arcor.de
Mon Apr 3 13:34:41 CEST 2006


Thanks, I'll follow your advice.

Martin

> -----Ursprüngliche Nachricht-----
> Von: typo3-english-bounces at lists.netfielders.de 
> [mailto:typo3-english-bounces at lists.netfielders.de] Im 
> Auftrag von Martin Kutschker
> Gesendet: Montag, 3. April 2006 11:50
> An: typo3-english at lists.netfielders.de
> Betreff: Re: [TYPO3] Is it safe to use DBAL?
> 
> 
> 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. _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 





More information about the TYPO3-english mailing list