Re: [Zope-dev] determining database manager type from z database connection?

2001-05-04 Thread Kent Polk

On 3 May 2001 21:15:01 -0500, Andreas Heckel wrote:
> Kent Polk wrote:
>> 
>> Is there a generic way to determine what 'brand' of database manager
>> a Zope database connection is connected to by interrogating the
>> connection object?
> 
> 
> ID: 
> title: 
> type:
> 
> 
> 
> database_type is the 'brand' of the Zope DA. If you are connectet to a 
> PostgreSQL DB using ZPyGreSQLDA you get 'PyGreSQL'. Using ZPoPyDA it
> returns 'PoPy'. That's not exactly what you are looking for but I hope
> it helps.

Actually, that is exactly what I was looking for.

Thanks Much!


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] determining database manager type from z database connection?

2001-05-03 Thread Andreas Heckel

Kent Polk wrote:
> 
> Is there a generic way to determine what 'brand' of database manager
> a Zope database connection is connected to by interrogating the
> connection object?


ID: 
title: 
type:



database_type is the 'brand' of the Zope DA. If you are connectet to a 
PostgreSQL DB using ZPyGreSQLDA you get 'PyGreSQL'. Using ZPoPyDA it
returns 'PoPy'. That's not exactly what you are looking for but I hope
it helps.

Andreas

-- 
___
Andreas Heckel  [EMAIL PROTECTED]
LINUX is like a wigwam...no gates...no windows and an apache inside ;-)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )