[TYPO3-dev] Using Postgres in an Extension and use pure SQL
Martin Kutschker
masi-no at spam-typo3.org
Thu Jan 29 11:26:17 CET 2009
Andy Grunwald [wmdb] schrieb:
> Martin Kutschker schrieb:
>>
>> ...You could create your own instance of t3lib_db
>> though. But in this case you'd gain little as the class works only
>> directly with Mysql.
>
> How is it possible to create your own instance of t3lib_db to connect to
> another database?
> if i remember, the data (host, user, pass) to connect to a database are
> stored in constants and this constants will be used in t3lib_db to build
> a connection. Or i`m on the wrong way?
Yes. Because the constructor a) doesn't do the connect and b) IIRC the
constants are passed to the connect method of t3lib_db
BUT, this makes only sense if you'd connect to another Mysql-DB.
Masi
More information about the TYPO3-dev
mailing list